]> git.lizzy.rs Git - rust.git/blob - src/bootstrap/mk/Makefile.in
bcf2f6a675e02715340fcd22a0350c9d264703ef
[rust.git] / src / bootstrap / mk / Makefile.in
1 # Copyright 2016 The Rust Project Developers. See the COPYRIGHT
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
11 ifdef VERBOSE
12 Q :=
13 BOOTSTRAP_ARGS := -v
14 else
15 Q := @
16 BOOTSTRAP_ARGS :=
17 endif
18
19 ifdef EXCLUDE_CARGO
20 AUX_ARGS :=
21 else
22 AUX_ARGS := src/tools/cargo src/tools/cargotest
23 endif
24
25 BOOTSTRAP := $(CFG_PYTHON) $(CFG_SRC_DIR)src/bootstrap/bootstrap.py
26
27 all:
28         $(Q)$(BOOTSTRAP) build $(BOOTSTRAP_ARGS)
29         $(Q)$(BOOTSTRAP) doc $(BOOTSTRAP_ARGS)
30
31 help:
32         $(Q)echo 'Welcome to the rustbuild build system!'
33         $(Q)echo
34         $(Q)echo This makefile is a thin veneer over the ./x.py script located
35         $(Q)echo in this directory. To get the full power of the build system
36         $(Q)echo you can run x.py directly.
37         $(Q)echo
38         $(Q)echo To learn more run \`./x.py --help\`
39
40 clean:
41         $(Q)$(BOOTSTRAP) clean $(BOOTSTRAP_ARGS)
42
43 rustc-stage1:
44         $(Q)$(BOOTSTRAP) build --stage 1 src/libtest $(BOOTSTRAP_ARGS)
45 rustc-stage2:
46         $(Q)$(BOOTSTRAP) build --stage 2 src/libtest $(BOOTSTRAP_ARGS)
47
48 docs: doc
49 doc:
50         $(Q)$(BOOTSTRAP) doc $(BOOTSTRAP_ARGS)
51 nomicon:
52         $(Q)$(BOOTSTRAP) doc src/doc/nomicon $(BOOTSTRAP_ARGS)
53 book:
54         $(Q)$(BOOTSTRAP) doc src/doc/book $(BOOTSTRAP_ARGS)
55 standalone-docs:
56         $(Q)$(BOOTSTRAP) doc src/doc $(BOOTSTRAP_ARGS)
57 check:
58         $(Q)$(BOOTSTRAP) test $(BOOTSTRAP_ARGS)
59 check-aux:
60         $(Q)$(BOOTSTRAP) test \
61                 src/test/pretty \
62                 src/test/run-pass/pretty \
63                 src/test/run-fail/pretty \
64                 src/test/run-pass-valgrind/pretty \
65                 src/test/run-pass-fulldeps/pretty \
66                 src/test/run-fail-fulldeps/pretty \
67                 $(AUX_ARGS) \
68                 $(BOOTSTRAP_ARGS)
69 check-bootstrap:
70         $(Q)$(CFG_PYTHON) $(CFG_SRC_DIR)src/bootstrap/bootstrap_test.py
71 dist:
72         $(Q)$(BOOTSTRAP) dist $(BOOTSTRAP_ARGS)
73 distcheck:
74         $(Q)$(BOOTSTRAP) dist $(BOOTSTRAP_ARGS)
75         $(Q)$(BOOTSTRAP) test distcheck $(BOOTSTRAP_ARGS)
76 install:
77         $(Q)$(BOOTSTRAP) install $(BOOTSTRAP_ARGS)
78 tidy:
79         $(Q)$(BOOTSTRAP) test src/tools/tidy $(BOOTSTRAP_ARGS)
80 prepare:
81         $(Q)$(BOOTSTRAP) build nonexistent/path/to/trigger/cargo/metadata
82
83 check-stage2-T-arm-linux-androideabi-H-x86_64-unknown-linux-gnu:
84         $(Q)$(BOOTSTRAP) test --target arm-linux-androideabi
85 check-stage2-T-x86_64-unknown-linux-musl-H-x86_64-unknown-linux-gnu:
86         $(Q)$(BOOTSTRAP) test --target x86_64-unknown-linux-musl
87
88 TESTS_IN_2 := src/test/run-pass src/test/compile-fail src/test/run-pass-fulldeps
89
90 appveyor-subset-1:
91         $(Q)$(BOOTSTRAP) test $(TESTS_IN_2:%=--exclude %)
92 appveyor-subset-2:
93         $(Q)$(BOOTSTRAP) test $(TESTS_IN_2)
94
95
96 .PHONY: dist