summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-01-07 00:20:47 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-01-07 00:20:47 +0000
commit14f143093d5a3e4956d20af0c4aeda49f9b4aea6 (patch)
tree138de4a62308a231e9a473f365007b9ba8a6c145 /Makefile
parent0e634907c1421239606d5cfe5ba99f6e8298d900 (diff)
downloadFreeBSD-src-14f143093d5a3e4956d20af0c4aeda49f9b4aea6.zip
FreeBSD-src-14f143093d5a3e4956d20af0c4aeda49f9b4aea6.tar.gz
Revert r293286. It was not intended to come in yet.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c9b8a0a..836097b 100644
--- a/Makefile
+++ b/Makefile
@@ -143,6 +143,13 @@ TGTS+= ${BITGTS}
PATH= /sbin:/bin:/usr/sbin:/usr/bin
MAKEOBJDIRPREFIX?= /usr/obj
+_MAKEOBJDIRPREFIX!= /usr/bin/env -i PATH=${PATH} ${MAKE} \
+ ${.MAKEFLAGS:MMAKEOBJDIRPREFIX=*} __MAKE_CONF=${__MAKE_CONF} \
+ -f /dev/null -V MAKEOBJDIRPREFIX dummy
+.if !empty(_MAKEOBJDIRPREFIX)
+.error MAKEOBJDIRPREFIX can only be set in environment, not as a global\
+ (in make.conf(5)) or command-line variable.
+.endif
# We often need to use the tree's version of make to build it.
# Choices add to complexity though.
OpenPOWER on IntegriCloud