Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Nov 2016 00:10:59 +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: r308598 - head/share/mk
Message-ID:  <201611130010.uAD0AxEL094029@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Sun Nov 13 00:10:59 2016
New Revision: 308598
URL: https://svnweb.freebsd.org/changeset/base/308598

Log:
  DIRDEPS_BUILD: Don't hook 'beforebuild' into 'all' in MAKELEVEL 0.
  
  This was a mistake in r295641, but is effectively prevented from
  being a problem due to r296699 preventing 'make all' from being
  usable at MAKELEVEL 0 for DIRDEPS_BUILD.
  
  MFC after:	2 weeks
  Sponsored by:	Dell EMC Isilon

Modified:
  head/share/mk/bsd.init.mk

Modified: head/share/mk/bsd.init.mk
==============================================================================
--- head/share/mk/bsd.init.mk	Sun Nov 13 00:10:56 2016	(r308597)
+++ head/share/mk/bsd.init.mk	Sun Nov 13 00:10:59 2016	(r308598)
@@ -15,10 +15,6 @@ __<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
@@ -28,6 +24,11 @@ _SKIP_BUILD = not building at level 0
 .warning ${_SKIP_BUILD}
 .endif
 
+beforebuild: .PHONY .NOTMAIN
+.if !defined(_SKIP_BUILD)
+all: beforebuild .WAIT
+.endif
+
 .if ${MK_META_MODE} == "yes"
 .if !exists(/dev/filemon) && \
     ${UPDATE_DEPENDFILE:Uyes:tl} != "no" && !defined(NO_FILEMON) && \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611130010.uAD0AxEL094029>