]> git.lizzy.rs Git - rust.git/blob - src/bootstrap/mk/Makefile.in
Merge from rustc
[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 dist:
49         $(Q)$(BOOTSTRAP) dist $(BOOTSTRAP_ARGS)
50 distcheck:
51         $(Q)$(BOOTSTRAP) dist $(BOOTSTRAP_ARGS)
52         $(Q)$(BOOTSTRAP) test --stage 2 distcheck $(BOOTSTRAP_ARGS)
53 install:
54         $(Q)$(BOOTSTRAP) install $(BOOTSTRAP_ARGS)
55 tidy:
56         $(Q)$(BOOTSTRAP) test --stage 2 src/tools/tidy $(BOOTSTRAP_ARGS)
57 prepare:
58         $(Q)$(BOOTSTRAP) build --stage 2 nonexistent/path/to/trigger/cargo/metadata
59
60 TESTS_IN_2 := \
61         src/test/ui \
62         src/tools/linkchecker
63
64 ## MSVC native builders
65
66 # these intentionally don't use `$(BOOTSTRAP)` so we can test the shebang on Windows
67 ci-subset-1:
68         $(Q)$(CFG_SRC_DIR)/x.py test --stage 2 $(TESTS_IN_2:%=--exclude %)
69 ci-subset-2:
70         $(Q)$(CFG_SRC_DIR)/x.ps1 test --stage 2 $(TESTS_IN_2)
71
72 ## MingW native builders
73
74 TESTS_IN_MINGW_2 := \
75         src/test/ui
76
77 ci-mingw-subset-1:
78         $(Q)$(CFG_SRC_DIR)/x test --stage 2 $(TESTS_IN_MINGW_2:%=--exclude %)
79 ci-mingw-subset-2:
80         $(Q)$(BOOTSTRAP) test --stage 2 $(TESTS_IN_MINGW_2)
81
82
83 .PHONY: dist