]> git.proxmox.com Git - rustc.git/blob - src/bootstrap/mk/Makefile.in
New upstream version 1.14.0+dfsg1
[rustc.git] / src / bootstrap / mk / Makefile.in
1 # Copyright 20126 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 include $(CFG_SRC_DIR)mk/util.mk
13
14 ifdef VERBOSE
15 BOOTSTRAP_ARGS := -v
16 else
17 BOOTSTRAP_ARGS :=
18 endif
19
20 BOOTSTRAP := $(CFG_PYTHON) $(CFG_SRC_DIR)src/bootstrap/bootstrap.py
21
22 all:
23 $(Q)$(BOOTSTRAP) build $(BOOTSTRAP_ARGS)
24 $(Q)$(BOOTSTRAP) doc $(BOOTSTRAP_ARGS)
25
26 # Don’t use $(Q) here, always show how to invoke the bootstrap script directly
27 help:
28 $(BOOTSTRAP) --help
29
30 clean:
31 $(Q)$(BOOTSTRAP) clean $(BOOTSTRAP_ARGS)
32
33 rustc-stage1:
34 $(Q)$(BOOTSTRAP) build --stage 1 src/libtest $(BOOTSTRAP_ARGS)
35 rustc-stage2:
36 $(Q)$(BOOTSTRAP) build --stage 2 src/libtest $(BOOTSTRAP_ARGS)
37
38 docs: doc
39 doc:
40 $(Q)$(BOOTSTRAP) doc $(BOOTSTRAP_ARGS)
41 nomicon:
42 $(Q)$(BOOTSTRAP) doc src/doc/nomicon $(BOOTSTRAP_ARGS)
43 book:
44 $(Q)$(BOOTSTRAP) doc src/doc/book $(BOOTSTRAP_ARGS)
45 standalone-docs:
46 $(Q)$(BOOTSTRAP) doc src/doc $(BOOTSTRAP_ARGS)
47 check:
48 $(Q)$(BOOTSTRAP) test $(BOOTSTRAP_ARGS)
49 check-cargotest:
50 $(Q)$(BOOTSTRAP) test src/tools/cargotest $(BOOTSTRAP_ARGS)
51 dist:
52 $(Q)$(BOOTSTRAP) dist $(BOOTSTRAP_ARGS)
53 install:
54 ifeq (root user, $(USER) $(patsubst %,user,$(SUDO_USER)))
55 $(Q)echo "'sudo make install' is not supported currently."
56 else
57 $(Q)$(BOOTSTRAP) dist --install $(BOOTSTRAP_ARGS)
58 endif
59 tidy:
60 $(Q)$(BOOTSTRAP) test src/tools/tidy $(BOOTSTRAP_ARGS)
61
62 .PHONY: dist