Date: Tue, 16 Feb 2016 02:09:48 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r295641 - in head: share/mk sys/conf Message-ID: <201602160209.u1G29mVF008140@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bdrewery Date: Tue Feb 16 02:09:48 2016 New Revision: 295641 URL: https://svnweb.freebsd.org/changeset/base/295641 Log: Consolidate common beforebuild logic. Sponsored by: EMC / Isilon Storage Division Modified: head/share/mk/bsd.init.mk head/share/mk/bsd.lib.mk head/share/mk/bsd.obj.mk head/share/mk/bsd.prog.mk head/sys/conf/kmod.mk Modified: head/share/mk/bsd.init.mk ============================================================================== --- head/share/mk/bsd.init.mk Tue Feb 16 01:18:49 2016 (r295640) +++ head/share/mk/bsd.init.mk Tue Feb 16 02:09:48 2016 (r295641) @@ -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 Modified: head/share/mk/bsd.lib.mk ============================================================================== --- head/share/mk/bsd.lib.mk Tue Feb 16 01:18:49 2016 (r295640) +++ head/share/mk/bsd.lib.mk Tue Feb 16 02:09:48 2016 (r295641) @@ -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} Modified: head/share/mk/bsd.obj.mk ============================================================================== --- head/share/mk/bsd.obj.mk Tue Feb 16 01:18:49 2016 (r295640) +++ head/share/mk/bsd.obj.mk Tue Feb 16 02:09:48 2016 (r295641) @@ -89,6 +89,7 @@ objwarn: canonical ${CANONICALOBJDIR}" .endif .endif +beforebuild: objwarn .if !defined(NO_OBJ) .if !target(obj) Modified: head/share/mk/bsd.prog.mk ============================================================================== --- head/share/mk/bsd.prog.mk Tue Feb 16 01:18:49 2016 (r295640) +++ head/share/mk/bsd.prog.mk Tue Feb 16 02:09:48 2016 (r295641) @@ -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 Modified: head/sys/conf/kmod.mk ============================================================================== --- head/sys/conf/kmod.mk Tue Feb 16 01:18:49 2016 (r295640) +++ head/sys/conf/kmod.mk Tue Feb 16 02:09:48 2016 (r295641) @@ -249,8 +249,7 @@ _ILINKS+=x86 .endif CLEANFILES+=${_ILINKS} -all: beforebuild .WAIT ${PROG} -beforebuild: objwarn +all: ${PROG} beforedepend: ${_ILINKS} beforebuild: ${_ILINKS}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602160209.u1G29mVF008140>