57 lines
1.3 KiB
Makefile
57 lines
1.3 KiB
Makefile
# Copyright 20126 The Rust Project Developers. See the COPYRIGHT
|
||
# file at the top-level directory of this distribution and at
|
||
# http://rust-lang.org/COPYRIGHT.
|
||
#
|
||
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||
# option. This file may not be copied, modified, or distributed
|
||
# except according to those terms.
|
||
|
||
include config.mk
|
||
include $(CFG_SRC_DIR)mk/util.mk
|
||
|
||
ifdef VERBOSE
|
||
BOOTSTRAP_ARGS := -v
|
||
else
|
||
BOOTSTRAP_ARGS :=
|
||
endif
|
||
|
||
BOOTSTRAP := $(CFG_PYTHON) $(CFG_SRC_DIR)src/bootstrap/bootstrap.py $(BOOTSTRAP_ARGS)
|
||
|
||
all:
|
||
$(Q)$(BOOTSTRAP)
|
||
|
||
# Don’t use $(Q) here, always show how to invoke the bootstrap script directly
|
||
help:
|
||
$(BOOTSTRAP) --help
|
||
|
||
clean:
|
||
$(Q)$(BOOTSTRAP) --clean
|
||
|
||
rustc-stage1:
|
||
$(Q)$(BOOTSTRAP) --step libtest --stage 1
|
||
rustc-stage2:
|
||
$(Q)$(BOOTSTRAP) --step libtest --stage 2
|
||
|
||
docs: doc
|
||
doc:
|
||
$(Q)$(BOOTSTRAP) --step doc
|
||
style:
|
||
$(Q)$(BOOTSTRAP) --step doc-style
|
||
nomicon:
|
||
$(Q)$(BOOTSTRAP) --step doc-nomicon
|
||
book:
|
||
$(Q)$(BOOTSTRAP) --step doc-book
|
||
standalone-docs:
|
||
$(Q)$(BOOTSTRAP) --step doc-standalone
|
||
check:
|
||
$(Q)$(BOOTSTRAP) --step check
|
||
check-cargotest:
|
||
$(Q)$(BOOTSTRAP) --step check-cargotest
|
||
dist:
|
||
$(Q)$(BOOTSTRAP) --step dist
|
||
tidy:
|
||
$(Q)$(BOOTSTRAP) --step check-tidy --stage 0
|
||
|
||
.PHONY: dist
|