aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2015-08-12 19:00:47 +0000
committerWarner Losh <imp@FreeBSD.org>2015-08-12 19:00:47 +0000
commit9aca5cedfeca0230db50c2225c8dc6170bc061dd (patch)
treef6d776509eb53f405d8c4bd3f36fcd7b19426809 /Makefile.inc1
parent101a6d4eac34316b31b15928b898c7abe1759ec4 (diff)
downloadsrc-9aca5cedfeca0230db50c2225c8dc6170bc061dd.tar.gz
src-9aca5cedfeca0230db50c2225c8dc6170bc061dd.zip
Document build-tools better. Add rescue back because it builds /bin/sh
which has a build-tools target (see commit for how build-tools and cross-tools differ).
Notes
Notes: svn path=/head/; revision=286687
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc115
1 files changed, 13 insertions, 2 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index a67a6b141b61..25a48906ccba 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -219,11 +219,16 @@ INSTALLTMP!= /usr/bin/mktemp -d -u -t install
# 2. build-tools stage [TMAKE]
# This stage is responsible for creating the object
# tree and building any tools that are needed during
-# the build process.
+# the build process. Some programs are listed during
+# this phase because they build binaires to generate
+# files needed to build these programs. This stage also
+# builds the 'build-tools' target rather than 'all'.
# 3. cross-tools stage [XMAKE]
# This stage is responsible for creating any tools that
# are needed for building the system. A cross-compiler is one
-# of them.
+# of them. This differs from build tools in two ways:
+# 1. the 'all' target is built rather than 'build-tools'
+# 2. these tools are installed into TMPPATH for stage 4.
# 4. world stage [WMAKE]
# This stage actually builds the world.
# 5. install stage (optional) [IMAKE]
@@ -1432,6 +1437,11 @@ _share= share/syscons/scrnmaps
_gcc_tools= gnu/usr.bin/cc/cc_tools
.endif
+.if ${MK_RESCUE} != "no"
+# rescue includes programs that have build-tools targets
+_rescue=rescue
+.endif
+
build-tools: .MAKE
.for _tool in \
bin/csh \
@@ -1439,6 +1449,7 @@ build-tools: .MAKE
${LOCAL_TOOL_DIRS} \
lib/ncurses/ncurses \
lib/ncurses/ncursesw \
+ ${_rescue}
${_share} \
usr.bin/awk \
lib/libmagic \