summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2014-11-21 18:18:37 +0000
committerbrooks <brooks@FreeBSD.org>2014-11-21 18:18:37 +0000
commit3667f63bfebe8b4966fea8062ebbb2de2dcc6cc5 (patch)
tree03940cf374f49a0bacd0b1ce8435898ba10bf412 /Makefile.inc1
parent1e5d8c9aac5777d8b7f31fbc7725947d3587d41c (diff)
downloadFreeBSD-src-3667f63bfebe8b4966fea8062ebbb2de2dcc6cc5.zip
FreeBSD-src-3667f63bfebe8b4966fea8062ebbb2de2dcc6cc5.tar.gz
Add a guard against attempting to invoke the buildenv target with -j# as
that silently exits rather than doing something useful. MFC after: 1 week Sponsored by: DARPA, AFRL
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 8cbd58f..625e832 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -691,6 +691,11 @@ buildworld_epilogue:
buildenvvars:
@echo ${WMAKEENV:Q}
+.if ${.TARGETS:Mbuildenv}
+.if ${.MAKEFLAGS:M-j}
+.error The buildenv target is incompatible with -j
+.endif
+.endif
buildenv:
@echo Entering world for ${TARGET_ARCH}:${TARGET}
@cd ${.CURDIR} && env ${WMAKEENV} ${BUILDENV_SHELL} || true
OpenPOWER on IntegriCloud