aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2015-06-11 13:51:52 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2015-06-11 13:51:52 +0000
commit92f755617b90bd35dc5754b6ca4e13293b9ec9cc (patch)
treef00c42166aacf1ac9dbc8a32d2e596a893738da8
parentde1eae5ccb25d5ab2cb92080bfce3f7722e4950d (diff)
downloadsrc-92f755617b90bd35dc5754b6ca4e13293b9ec9cc.tar.gz
src-92f755617b90bd35dc5754b6ca4e13293b9ec9cc.zip
For debugging we sometimes run makefiles forcing level > 0
Ensure setup that should have happened at level 0 is done.
Notes
Notes: svn path=/projects/bmake/; revision=284262
-rw-r--r--share/mk/local.meta.sys.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/local.meta.sys.mk b/share/mk/local.meta.sys.mk
index b4109a397009..ef7ddc3c53c8 100644
--- a/share/mk/local.meta.sys.mk
+++ b/share/mk/local.meta.sys.mk
@@ -4,7 +4,7 @@
# XXX some of this should be in meta.sys.mk
# we assume that MK_META_MODE=yes
-.if ${.MAKE.LEVEL} == 0
+.if empty(OBJROOT) || ${.MAKE.LEVEL} == 0
.if !empty(SB)
SB_OBJROOT ?= ${SB}/obj/
# this is what we use below