9 BOOTSTRAP := $(CFG_PYTHON) $(CFG_SRC_DIR)src/bootstrap/bootstrap.py
12 $(Q)$(BOOTSTRAP) build --stage 2 $(BOOTSTRAP_ARGS)
13 $(Q)$(BOOTSTRAP) doc --stage 2 $(BOOTSTRAP_ARGS)
16 $(Q)echo 'Welcome to the rustbuild build system!'
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.
22 $(Q)echo To learn more run \`./x.py --help\`
25 $(Q)$(BOOTSTRAP) clean $(BOOTSTRAP_ARGS)
28 $(Q)$(BOOTSTRAP) build --stage 1 library/test $(BOOTSTRAP_ARGS)
30 $(Q)$(BOOTSTRAP) build --stage 2 library/test $(BOOTSTRAP_ARGS)
34 $(Q)$(BOOTSTRAP) doc --stage 2 $(BOOTSTRAP_ARGS)
36 $(Q)$(BOOTSTRAP) doc --stage 2 src/doc/nomicon $(BOOTSTRAP_ARGS)
38 $(Q)$(BOOTSTRAP) doc --stage 2 src/doc/book $(BOOTSTRAP_ARGS)
40 $(Q)$(BOOTSTRAP) doc --stage 2 src/doc $(BOOTSTRAP_ARGS)
42 $(Q)$(BOOTSTRAP) test --stage 2 $(BOOTSTRAP_ARGS)
44 $(Q)$(BOOTSTRAP) test --stage 2 \
49 $(Q)$(BOOTSTRAP) dist $(BOOTSTRAP_ARGS)
51 $(Q)$(BOOTSTRAP) dist $(BOOTSTRAP_ARGS)
52 $(Q)$(BOOTSTRAP) test --stage 2 distcheck $(BOOTSTRAP_ARGS)
54 $(Q)$(BOOTSTRAP) install $(BOOTSTRAP_ARGS)
56 $(Q)$(BOOTSTRAP) test --stage 2 src/tools/tidy $(BOOTSTRAP_ARGS)
58 $(Q)$(BOOTSTRAP) build --stage 2 nonexistent/path/to/trigger/cargo/metadata
60 check-stage2-T-arm-linux-androideabi-H-x86_64-unknown-linux-gnu:
61 $(Q)$(BOOTSTRAP) test --stage 2 --target arm-linux-androideabi
62 check-stage2-T-x86_64-unknown-linux-musl-H-x86_64-unknown-linux-gnu:
63 $(Q)$(BOOTSTRAP) test --stage 2 --target x86_64-unknown-linux-musl
69 ## MSVC native builders
71 # these intentionally don't use `$(BOOTSTRAP)` so we can test the shebang on Windows
73 $(Q)$(CFG_SRC_DIR)/x.py test --stage 2 $(TESTS_IN_2:%=--exclude %)
75 $(Q)$(CFG_SRC_DIR)/x.ps1 test --stage 2 $(TESTS_IN_2)
77 ## MingW native builders
83 $(Q)$(CFG_SRC_DIR)/x test --stage 2 $(TESTS_IN_MINGW_2:%=--exclude %)
85 $(Q)$(BOOTSTRAP) test --stage 2 $(TESTS_IN_MINGW_2)