aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2015-05-20 09:36:25 +0000
committerEnji Cooper <ngie@FreeBSD.org>2015-05-20 09:36:25 +0000
commitb61e5e488321a069f14d2830bb1e7ea7ef8913b2 (patch)
tree5ffbc1e092a441a91969e5e3a003dfaa8fda9815 /Makefile.inc1
parentf45474786799c93aaca234497f5c3241c8821a68 (diff)
downloadsrc-b61e5e488321a069f14d2830bb1e7ea7ef8913b2.tar.gz
src-b61e5e488321a069f14d2830bb1e7ea7ef8913b2.zip
Only build sys/boot/usb/tools if MK_USB != no
Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=283140
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc15
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index ba7068812dd4..87e22538ae73 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1502,6 +1502,9 @@ _clang_libs= lib/clang
_cc= gnu/usr.bin/cc
.endif
.endif
+.if ${MK_USB} != "no"
+_usb_tools= sys/boot/usb/tools
+.endif
cross-tools: .MAKE
.for _tool in \
@@ -1512,7 +1515,7 @@ cross-tools: .MAKE
${_cc} \
${_btxld} \
${_crunchide} \
- sys/boot/usb/tools
+ ${_usb_tools}
${_+_}@${ECHODIR} "===> ${_tool} (obj,depend,all,install)"; \
cd ${.CURDIR}/${_tool} && \
${MAKE} DIRPRFX=${_tool}/ obj && \