Consolidate common beforebuild logic.

Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Bryan Drewery 2016-02-16 02:09:48 +00:00
parent 179a5a39a8
commit 1bd4272fb9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295641
5 changed files with 7 additions and 9 deletions

View File

@ -15,6 +15,10 @@ __<bsd.init.mk>__:
.endif
.include <bsd.own.mk>
.MAIN: all
beforebuild: .PHONY .NOTMAIN
.if !defined(_SKIP_BUILD)
all: beforebuild .WAIT
.endif
.if ${.MAKE.LEVEL:U1} == 0 && ${BUILD_AT_LEVEL0:Uyes:tl} == "no" && !make(clean*)
# this tells lib.mk and prog.mk to not actually build anything

View File

@ -128,11 +128,6 @@ PO_FLAG=-pg
-c ${.IMPSRC} -o ${.TARGET}
${CTFCONVERT_CMD}
.if !defined(_SKIP_BUILD)
all: beforebuild .WAIT
beforebuild: objwarn
.endif
_LIBDIR:=${LIBDIR}
_SHLIBDIR:=${SHLIBDIR}

View File

@ -89,6 +89,7 @@ objwarn:
canonical ${CANONICALOBJDIR}"
.endif
.endif
beforebuild: objwarn
.if !defined(NO_OBJ)
.if !target(obj)

View File

@ -148,8 +148,7 @@ MAN1= ${MAN}
.if defined(_SKIP_BUILD)
all:
.else
all: beforebuild .WAIT ${PROG} ${SCRIPTS}
beforebuild: objwarn
all: ${PROG} ${SCRIPTS}
.if ${MK_MAN} != "no"
all: _manpages
.endif

View File

@ -249,8 +249,7 @@ _ILINKS+=x86
.endif
CLEANFILES+=${_ILINKS}
all: beforebuild .WAIT ${PROG}
beforebuild: objwarn
all: ${PROG}
beforedepend: ${_ILINKS}
beforebuild: ${_ILINKS}