summaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2012-01-05 21:50:50 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2012-01-05 21:50:50 +0000
commit9b428cfab60e785f482864433ba2d99c7d8e67aa (patch)
treea2c51d67f7465734324fc5f413e4c256410a190d /Makefile.inc1
parent030b95d47914abb6e807519b28c62f4467b7198b (diff)
downloadsrc-test-9b428cfab60e785f482864433ba2d99c7d8e67aa.tar.gz
src-test-9b428cfab60e785f482864433ba2d99c7d8e67aa.zip
Allow extra directories to be added to the build-tools target.
Things such as "sh" require local tools to be built before cross-compiling. This allows for extra software (that's built via LOCAL_DIRS) to also have a build-tools target where required.
Notes
Notes: svn path=/head/; revision=229659
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc15
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 59e74c3286437..b6e8dd000896e 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -15,6 +15,8 @@
# -DNO_WWWUPDATE do not update www in ${MAKE} update
# -DNO_CTF do not run the DTrace CTF conversion tools on built objects
# LOCAL_DIRS="list of dirs" to add additional dirs to the SUBDIR list
+# LOCAL_TOOL_DIRS="list of dirs" to add additional dirs to the build-tools
+# list
# TARGET="machine" to crossbuild world for a different machine type
# TARGET_ARCH= may be required when a TARGET supports multiple endians
@@ -104,6 +106,8 @@ CLEANDIR= clean cleandepend
CLEANDIR= cleandir
.endif
+LOCAL_TOOL_DIRS?= ''
+
CVS?= cvs
CVSFLAGS?= -A -P -d -I!
SVN?= svn
@@ -1101,6 +1105,7 @@ build-tools:
bin/csh \
bin/sh \
${_rescue} \
+ ${LOCAL_TOOL_DIRS} \
lib/ncurses/ncurses \
lib/ncurses/ncursesw \
${_share} \