]>
Commit | Line | Data |
---|---|---|
476ff2be | 1 | # Copyright 2016 The Rust Project Developers. See the COPYRIGHT |
7453a54e SL |
2 | # file at the top-level directory of this distribution and at |
3 | # http://rust-lang.org/COPYRIGHT. | |
4 | # | |
5 | # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | |
6 | # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
7 | # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | |
8 | # option. This file may not be copied, modified, or distributed | |
9 | # except according to those terms. | |
10 | ||
7453a54e | 11 | ifdef VERBOSE |
8bb4bdeb | 12 | Q := |
7453a54e SL |
13 | BOOTSTRAP_ARGS := -v |
14 | else | |
8bb4bdeb | 15 | Q := @ |
7453a54e SL |
16 | BOOTSTRAP_ARGS := |
17 | endif | |
18 | ||
c30ab7b3 | 19 | BOOTSTRAP := $(CFG_PYTHON) $(CFG_SRC_DIR)src/bootstrap/bootstrap.py |
7453a54e SL |
20 | |
21 | all: | |
c30ab7b3 SL |
22 | $(Q)$(BOOTSTRAP) build $(BOOTSTRAP_ARGS) |
23 | $(Q)$(BOOTSTRAP) doc $(BOOTSTRAP_ARGS) | |
7453a54e | 24 | |
9e0c209e | 25 | help: |
476ff2be SL |
26 | $(Q)echo 'Welcome to the rustbuild build system!' |
27 | $(Q)echo | |
28 | $(Q)echo This makefile is a thin veneer over the ./x.py script located | |
29 | $(Q)echo in this directory. To get the full power of the build system | |
30 | $(Q)echo you can run x.py directly. | |
31 | $(Q)echo | |
32 | $(Q)echo To learn more run \`./x.py --help\` | |
9e0c209e | 33 | |
7453a54e | 34 | clean: |
c30ab7b3 | 35 | $(Q)$(BOOTSTRAP) clean $(BOOTSTRAP_ARGS) |
7453a54e | 36 | |
3157f602 | 37 | rustc-stage1: |
c30ab7b3 | 38 | $(Q)$(BOOTSTRAP) build --stage 1 src/libtest $(BOOTSTRAP_ARGS) |
3157f602 | 39 | rustc-stage2: |
c30ab7b3 | 40 | $(Q)$(BOOTSTRAP) build --stage 2 src/libtest $(BOOTSTRAP_ARGS) |
3157f602 | 41 | |
7453a54e SL |
42 | docs: doc |
43 | doc: | |
c30ab7b3 | 44 | $(Q)$(BOOTSTRAP) doc $(BOOTSTRAP_ARGS) |
7453a54e | 45 | nomicon: |
c30ab7b3 | 46 | $(Q)$(BOOTSTRAP) doc src/doc/nomicon $(BOOTSTRAP_ARGS) |
7453a54e | 47 | book: |
c30ab7b3 | 48 | $(Q)$(BOOTSTRAP) doc src/doc/book $(BOOTSTRAP_ARGS) |
7453a54e | 49 | standalone-docs: |
c30ab7b3 | 50 | $(Q)$(BOOTSTRAP) doc src/doc $(BOOTSTRAP_ARGS) |
54a0048b | 51 | check: |
c30ab7b3 | 52 | $(Q)$(BOOTSTRAP) test $(BOOTSTRAP_ARGS) |
32a655c1 SL |
53 | check-aux: |
54 | $(Q)$(BOOTSTRAP) test \ | |
041b39d2 | 55 | src/tools/cargo \ |
3b2f2976 | 56 | src/tools/rls \ |
ea8adc8c XL |
57 | src/tools/rustfmt \ |
58 | src/tools/miri \ | |
32a655c1 SL |
59 | src/test/pretty \ |
60 | src/test/run-pass/pretty \ | |
61 | src/test/run-fail/pretty \ | |
62 | src/test/run-pass-valgrind/pretty \ | |
63 | src/test/run-pass-fulldeps/pretty \ | |
64 | src/test/run-fail-fulldeps/pretty \ | |
65 | $(BOOTSTRAP_ARGS) | |
3b2f2976 XL |
66 | check-bootstrap: |
67 | $(Q)$(CFG_PYTHON) $(CFG_SRC_DIR)src/bootstrap/bootstrap_test.py | |
54a0048b | 68 | dist: |
c30ab7b3 | 69 | $(Q)$(BOOTSTRAP) dist $(BOOTSTRAP_ARGS) |
476ff2be SL |
70 | distcheck: |
71 | $(Q)$(BOOTSTRAP) dist $(BOOTSTRAP_ARGS) | |
72 | $(Q)$(BOOTSTRAP) test distcheck $(BOOTSTRAP_ARGS) | |
c30ab7b3 | 73 | install: |
7cac9316 | 74 | $(Q)$(BOOTSTRAP) install $(BOOTSTRAP_ARGS) |
a7813a04 | 75 | tidy: |
32a655c1 | 76 | $(Q)$(BOOTSTRAP) test src/tools/tidy $(BOOTSTRAP_ARGS) |
8bb4bdeb XL |
77 | prepare: |
78 | $(Q)$(BOOTSTRAP) build nonexistent/path/to/trigger/cargo/metadata | |
476ff2be SL |
79 | |
80 | check-stage2-T-arm-linux-androideabi-H-x86_64-unknown-linux-gnu: | |
81 | $(Q)$(BOOTSTRAP) test --target arm-linux-androideabi | |
82 | check-stage2-T-x86_64-unknown-linux-musl-H-x86_64-unknown-linux-gnu: | |
32a655c1 | 83 | $(Q)$(BOOTSTRAP) test --target x86_64-unknown-linux-musl |
476ff2be | 84 | |
54a0048b SL |
85 | |
86 | .PHONY: dist |