]> git.lizzy.rs Git - rust.git/blob - src/bootstrap/mk/Makefile.in
Rollup merge of #42579 - maccoda:maccoda/env_docs, r=steveklabnik
[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 include config.mk
12
13 ifdef VERBOSE
14 Q :=
15 BOOTSTRAP_ARGS := -v
16 else
17 Q := @
18 BOOTSTRAP_ARGS :=
19 endif
20
21 BOOTSTRAP := $(CFG_PYTHON) $(CFG_SRC_DIR)src/bootstrap/bootstrap.py
22
23 all:
24         $(Q)$(BOOTSTRAP) build $(BOOTSTRAP_ARGS)
25         $(Q)$(BOOTSTRAP) doc $(BOOTSTRAP_ARGS)
26
27 help:
28         $(Q)echo 'Welcome to the rustbuild build system!'
29         $(Q)echo
30         $(Q)echo This makefile is a thin veneer over the ./x.py script located
31         $(Q)echo in this directory. To get the full power of the build system
32         $(Q)echo you can run x.py directly.
33         $(Q)echo
34         $(Q)echo To learn more run \`./x.py --help\`
35
36 clean:
37         $(Q)$(BOOTSTRAP) clean $(BOOTSTRAP_ARGS)
38
39 rustc-stage1:
40         $(Q)$(BOOTSTRAP) build --stage 1 src/libtest $(BOOTSTRAP_ARGS)
41 rustc-stage2:
42         $(Q)$(BOOTSTRAP) build --stage 2 src/libtest $(BOOTSTRAP_ARGS)
43
44 docs: doc
45 doc:
46         $(Q)$(BOOTSTRAP) doc $(BOOTSTRAP_ARGS)
47 nomicon:
48         $(Q)$(BOOTSTRAP) doc src/doc/nomicon $(BOOTSTRAP_ARGS)
49 book:
50         $(Q)$(BOOTSTRAP) doc src/doc/book $(BOOTSTRAP_ARGS)
51 standalone-docs:
52         $(Q)$(BOOTSTRAP) doc src/doc $(BOOTSTRAP_ARGS)
53 check:
54         $(Q)$(BOOTSTRAP) test $(BOOTSTRAP_ARGS)
55 check-aux:
56         $(Q)$(BOOTSTRAP) test \
57                 src/tools/cargotest \
58                 cargo \
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)
66 dist:
67         $(Q)$(BOOTSTRAP) dist $(BOOTSTRAP_ARGS)
68 distcheck:
69         $(Q)$(BOOTSTRAP) dist $(BOOTSTRAP_ARGS)
70         $(Q)$(BOOTSTRAP) test distcheck $(BOOTSTRAP_ARGS)
71 install:
72         $(Q)$(BOOTSTRAP) install $(BOOTSTRAP_ARGS)
73 tidy:
74         $(Q)$(BOOTSTRAP) test src/tools/tidy $(BOOTSTRAP_ARGS)
75 prepare:
76         $(Q)$(BOOTSTRAP) build nonexistent/path/to/trigger/cargo/metadata
77
78 check-stage2-T-arm-linux-androideabi-H-x86_64-unknown-linux-gnu:
79         $(Q)$(BOOTSTRAP) test --target arm-linux-androideabi
80 check-stage2-T-x86_64-unknown-linux-musl-H-x86_64-unknown-linux-gnu:
81         $(Q)$(BOOTSTRAP) test --target x86_64-unknown-linux-musl
82
83
84 .PHONY: dist