svn commit: r359714 - stable/12/share/mk
Bryan Drewery
bdrewery at FreeBSD.org
Tue Apr 7 19:44:38 UTC 2020
Author: bdrewery
Date: Tue Apr 7 19:44:37 2020
New Revision: 359714
URL: https://svnweb.freebsd.org/changeset/base/359714
Log:
MFC r349729:
Consider *clean targets as non-build targets as well.
Modified:
stable/12/share/mk/bsd.init.mk
stable/12/share/mk/bsd.sys.mk
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/share/mk/bsd.init.mk
==============================================================================
--- stable/12/share/mk/bsd.init.mk Tue Apr 7 19:40:14 2020 (r359713)
+++ stable/12/share/mk/bsd.init.mk Tue Apr 7 19:44:37 2020 (r359714)
@@ -58,11 +58,12 @@ $xGRP= ${_gid}
# things like 'make all install' or 'make foo install'.
# - non-build targets are called
.if ${MK_DIRDEPS_BUILD} == "yes" && ${.MAKE.LEVEL:U1} == 0 && \
- ${BUILD_AT_LEVEL0:Uyes:tl} == "no" && !make(clean*)
+ ${BUILD_AT_LEVEL0:Uyes:tl} == "no" && !make(clean*) && !make(*clean)
_SKIP_BUILD= not building at level 0
.elif !empty(.MAKEFLAGS:M-V${_V_DO_BUILD}) || \
${.TARGETS:M*install*} == ${.TARGETS} || \
${.TARGETS:Mclean*} == ${.TARGETS} || \
+ ${.TARGETS:M*clean} == ${.TARGETS} || \
${.TARGETS:Mdestroy*} == ${.TARGETS} || \
${.TARGETS:Mobj} == ${.TARGETS} || \
make(analyze) || make(print-dir)
Modified: stable/12/share/mk/bsd.sys.mk
==============================================================================
--- stable/12/share/mk/bsd.sys.mk Tue Apr 7 19:40:14 2020 (r359713)
+++ stable/12/share/mk/bsd.sys.mk Tue Apr 7 19:44:37 2020 (r359714)
@@ -284,7 +284,7 @@ PHONY_NOTMAIN = analyze afterdepend afterinstall all b
.NOTMAIN: ${PHONY_NOTMAIN:Nall}
.if ${MK_STAGING} != "no"
-.if defined(_SKIP_BUILD) || (!make(all) && !make(clean*))
+.if defined(_SKIP_BUILD) || (!make(all) && !make(clean*) && !make(*clean))
_SKIP_STAGING?= yes
.endif
.if ${_SKIP_STAGING:Uno} == "yes"
More information about the svn-src-all
mailing list