Changeset View
Changeset View
Standalone View
Standalone View
head/share/mk/bsd.init.mk
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
# (not) reading in depend files. For DIRDEPS_BUILD, it will only calculate | # (not) reading in depend files. For DIRDEPS_BUILD, it will only calculate | ||||
# the dependency graph at .MAKE.LEVEL==0, so nothing should be built there. | # the dependency graph at .MAKE.LEVEL==0, so nothing should be built there. | ||||
# Skip "build" logic if: | # Skip "build" logic if: | ||||
# - DIRDEPS_BUILD at MAKELEVEL 0 | # - DIRDEPS_BUILD at MAKELEVEL 0 | ||||
# - make -V is used without an override | # - make -V is used without an override | ||||
# - make install is used without other targets. This is to avoid breaking | # - make install is used without other targets. This is to avoid breaking | ||||
# things like 'make all install' or 'make foo install'. | # things like 'make all install' or 'make foo install'. | ||||
# - non-build targets are called | # - non-build targets are called | ||||
.if ${MK_DIRDEPS_BUILD} == "yes" && ${.MAKE.LEVEL:U1} == 0 && \ | .if ${MK_DIRDEPS_BUILD} == "yes" && ${.MAKE.LEVEL} == 0 | ||||
${BUILD_AT_LEVEL0:Uyes:tl} == "no" && !make(clean*) && !make(*clean) | # targets that are ok at level 0 | ||||
DIRDEPS_BUILD_LEVEL0_TARGETS += clean* destroy* | |||||
M_ListToSkip?= O:u:S,^,N,:ts: | |||||
.if ${.TARGETS:Uall:${DIRDEPS_BUILD_LEVEL0_TARGETS:${M_ListToSkip}}} != "" | |||||
_SKIP_BUILD= not building at level 0 | _SKIP_BUILD= not building at level 0 | ||||
.endif | |||||
.elif !empty(.MAKEFLAGS:M-V${_V_DO_BUILD}) || \ | .elif !empty(.MAKEFLAGS:M-V${_V_DO_BUILD}) || \ | ||||
${.TARGETS:M*install*} == ${.TARGETS} || \ | ${.TARGETS:M*install*} == ${.TARGETS} || \ | ||||
${.TARGETS:Mclean*} == ${.TARGETS} || \ | ${.TARGETS:Mclean*} == ${.TARGETS} || \ | ||||
${.TARGETS:M*clean} == ${.TARGETS} || \ | ${.TARGETS:M*clean} == ${.TARGETS} || \ | ||||
${.TARGETS:Mdestroy*} == ${.TARGETS} || \ | ${.TARGETS:Mdestroy*} == ${.TARGETS} || \ | ||||
${.TARGETS:Mobj} == ${.TARGETS} || \ | ${.TARGETS:Mobj} == ${.TARGETS} || \ | ||||
make(analyze) || make(print-dir) | make(analyze) || make(print-dir) | ||||
# Skip building, but don't show a warning. | # Skip building, but don't show a warning. | ||||
Show All 23 Lines |