mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
Consider *clean targets as non-build targets as well.
MFC after: 2 weeks Sponsored by: DellEMC
This commit is contained in:
parent
4924bcd36e
commit
3b53f994ea
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349729
@ -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)
|
||||
|
@ -284,7 +284,7 @@ PHONY_NOTMAIN = analyze afterdepend afterinstall all beforedepend beforeinstall
|
||||
.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"
|
||||
|
Loading…
Reference in New Issue
Block a user