aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2015-09-17 16:38:32 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2015-09-17 16:38:32 +0000
commit66e5857b4212578d42c7240e8c265d5b5e6b92e7 (patch)
tree6db52b4660a821eb2b23b1736580d7720d9fc040
parente4c53d3bf00a63680bb8b56c8118e8401436ad0d (diff)
downloadsrc-66e5857b4212578d42c7240e8c265d5b5e6b92e7.tar.gz
src-66e5857b4212578d42c7240e8c265d5b5e6b92e7.zip
Fix makeman creating obj directories due to turning on WITH_AUTO_OBJ.
r284708 addressed this slightly but seems to have put the make(showconfig) guard in the wrong place. Rather than guard setting the default obj directory, guard inclusion of auto.obj.mk. This avoids creating SRCTOP/obj and SRCTOP/release/obj when running makeman. Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=287919
-rw-r--r--share/mk/local.meta.sys.mk2
-rw-r--r--share/mk/sys.mk4
2 files changed, 2 insertions, 4 deletions
diff --git a/share/mk/local.meta.sys.mk b/share/mk/local.meta.sys.mk
index 29b9687ae931..2173dec8e667 100644
--- a/share/mk/local.meta.sys.mk
+++ b/share/mk/local.meta.sys.mk
@@ -10,7 +10,6 @@ MK_INSTALL_AS_USER= yes
_default_makeobjdir=$${.CURDIR:S,^$${SRCTOP},$${OBJTOP},}
.if empty(OBJROOT) || ${.MAKE.LEVEL} == 0
-.if !make(showconfig)
.if defined(MAKEOBJDIRPREFIX)
# put things approximately where they want
OBJROOT:=${MAKEOBJDIRPREFIX}${SRCTOP}/
@@ -25,7 +24,6 @@ MAKEOBJDIR=${_default_makeobjdir}
# Expand for our own use
MAKEOBJDIR:= ${MAKEOBJDIR}
.endif
-.endif
.if !empty(SB)
SB_OBJROOT ?= ${SB}/obj/
# this is what we use below
diff --git a/share/mk/sys.mk b/share/mk/sys.mk
index ae2df0578d47..9ee35b1783a2 100644
--- a/share/mk/sys.mk
+++ b/share/mk/sys.mk
@@ -47,8 +47,8 @@ __DEFAULT_DEPENDENT_OPTIONS= \
.endif
.if ${MK_AUTO_OBJ} == "yes"
# This needs to be done early - before .PATH is computed
-# Don't do this if just running make -V
-.if ${.MAKEFLAGS:M-V} == ""
+# Don't do this if just running 'make -V' or 'make showconfig'
+.if ${.MAKEFLAGS:M-V} == "" && !make(showconfig)
.sinclude <auto.obj.mk>
.endif
.endif