Use prebuild and a barrier, to allow ensuring headers are

staged before we attempt to build anything.
This commit is contained in:
Simon J. Gerraty 2012-11-08 21:36:19 +00:00
parent 6f385941d9
commit 1d45f69b29
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/bmake/; revision=242798

View File

@ -114,7 +114,12 @@ PO_FLAG=-pg
${CTFCONVERT_CMD}
.if !defined(_SKIP_BUILD)
all: objwarn
all: prebuild .WAIT
prebuild: objwarn
.if !defined(.PARSEDIR)
# this is a no-op
.WAIT:
.endif
.endif
.include <bsd.symver.mk>
@ -408,10 +413,13 @@ clean:
.if defined(_SKIP_BUILD)
stage_libs stage_files stage_as:
.else
.if !empty(_LIBS)
.if !empty(_LIBS) && !defined(INTERNALLIB)
stage_libs: ${_LIBS}
all: stage_libs
.endif
.if !empty(INCS) || !empty(INCSGROUPS)
prebuild: buildincludes
.endif
.include <meta.stage.mk>
.endif
.endif