Consolidate common beforebuild logic.
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
179a5a39a8
commit
1bd4272fb9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295641
@ -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
|
||||
|
@ -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}
|
||||
|
||||
|
@ -89,6 +89,7 @@ objwarn:
|
||||
canonical ${CANONICALOBJDIR}"
|
||||
.endif
|
||||
.endif
|
||||
beforebuild: objwarn
|
||||
|
||||
.if !defined(NO_OBJ)
|
||||
.if !target(obj)
|
||||
|
@ -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
|
||||
|
@ -249,8 +249,7 @@ _ILINKS+=x86
|
||||
.endif
|
||||
CLEANFILES+=${_ILINKS}
|
||||
|
||||
all: beforebuild .WAIT ${PROG}
|
||||
beforebuild: objwarn
|
||||
all: ${PROG}
|
||||
|
||||
beforedepend: ${_ILINKS}
|
||||
beforebuild: ${_ILINKS}
|
||||
|
Loading…
Reference in New Issue
Block a user