]> git.lizzy.rs Git - rust.git/blob - src/bootstrap/mk/Makefile.in
Auto merge of #83314 - Aaron1011:print-unstable-value, r=lcnr
[rust.git] / src / bootstrap / mk / Makefile.in
1 ifdef VERBOSE
2 Q :=
3 BOOTSTRAP_ARGS := -v
4 else
5 Q := @
6 BOOTSTRAP_ARGS :=
7 endif
8
9 BOOTSTRAP := $(CFG_PYTHON) $(CFG_SRC_DIR)src/bootstrap/bootstrap.py
10
11 all:
12         $(Q)$(BOOTSTRAP) build --stage 2 $(BOOTSTRAP_ARGS)
13         $(Q)$(BOOTSTRAP) doc --stage 2 $(BOOTSTRAP_ARGS)
14
15 help:
16         $(Q)echo 'Welcome to the rustbuild build system!'
17         $(Q)echo
18         $(Q)echo This makefile is a thin veneer over the ./x.py script located
19         $(Q)echo in this directory. To get the full power of the build system
20         $(Q)echo you can run x.py directly.
21         $(Q)echo
22         $(Q)echo To learn more run \`./x.py --help\`
23
24 clean:
25         $(Q)$(BOOTSTRAP) clean $(BOOTSTRAP_ARGS)
26
27 rustc-stage1:
28         $(Q)$(BOOTSTRAP) build --stage 1 library/test $(BOOTSTRAP_ARGS)
29 rustc-stage2:
30         $(Q)$(BOOTSTRAP) build --stage 2 library/test $(BOOTSTRAP_ARGS)
31
32 docs: doc
33 doc:
34         $(Q)$(BOOTSTRAP) doc --stage 2 $(BOOTSTRAP_ARGS)
35 nomicon:
36         $(Q)$(BOOTSTRAP) doc --stage 2 src/doc/nomicon $(BOOTSTRAP_ARGS)
37 book:
38         $(Q)$(BOOTSTRAP) doc --stage 2 src/doc/book $(BOOTSTRAP_ARGS)
39 standalone-docs:
40         $(Q)$(BOOTSTRAP) doc --stage 2 src/doc $(BOOTSTRAP_ARGS)
41 check:
42         $(Q)$(BOOTSTRAP) test --stage 2 $(BOOTSTRAP_ARGS)
43 check-aux:
44         $(Q)$(BOOTSTRAP) test --stage 2 \
45                 src/tools/cargo \
46                 src/tools/cargotest \
47                 $(BOOTSTRAP_ARGS)
48 check-aux-and-gui: check-aux
49         $(Q)$(BOOTSTRAP) test --stage 2 \
50                 src/test/rustdoc-gui \
51                 $(BOOTSTRAP_ARGS)
52 check-bootstrap:
53         $(Q)$(CFG_PYTHON) $(CFG_SRC_DIR)src/bootstrap/bootstrap_test.py
54 dist:
55         $(Q)$(BOOTSTRAP) dist $(BOOTSTRAP_ARGS)
56 distcheck:
57         $(Q)$(BOOTSTRAP) dist $(BOOTSTRAP_ARGS)
58         $(Q)$(BOOTSTRAP) test --stage 2 distcheck $(BOOTSTRAP_ARGS)
59 install:
60         $(Q)$(BOOTSTRAP) install $(BOOTSTRAP_ARGS)
61 tidy:
62         $(Q)$(BOOTSTRAP) test --stage 2 src/tools/tidy $(BOOTSTRAP_ARGS)
63 prepare:
64         $(Q)$(BOOTSTRAP) build --stage 2 nonexistent/path/to/trigger/cargo/metadata
65
66 check-stage2-T-arm-linux-androideabi-H-x86_64-unknown-linux-gnu:
67         $(Q)$(BOOTSTRAP) test --stage 2 --target arm-linux-androideabi
68 check-stage2-T-x86_64-unknown-linux-musl-H-x86_64-unknown-linux-gnu:
69         $(Q)$(BOOTSTRAP) test --stage 2 --target x86_64-unknown-linux-musl
70
71 TESTS_IN_2 := \
72         src/test/ui \
73         src/tools/linkchecker
74
75 ci-subset-1:
76         $(Q)$(BOOTSTRAP) test --stage 2 $(TESTS_IN_2:%=--exclude %)
77 ci-subset-2:
78         $(Q)$(BOOTSTRAP) test --stage 2 $(TESTS_IN_2)
79
80 TESTS_IN_MINGW_2 := \
81         src/test/ui
82
83 ci-mingw-subset-1:
84         $(Q)$(BOOTSTRAP) test --stage 2 $(TESTS_IN_MINGW_2:%=--exclude %)
85 ci-mingw-subset-2:
86         $(Q)$(BOOTSTRAP) test --stage 2 $(TESTS_IN_MINGW_2)
87
88
89 .PHONY: dist