Skip to content

Commit

Permalink
Don't create cookie until the command is all finished, it or the comm…
Browse files Browse the repository at this point in the history
…ands

after may fail.

Sponsored by:	EMC / Isilon Storage Division
  • Loading branch information
bdrewery committed Oct 1, 2015
1 parent 12a36c8 commit 066a643
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions targets/pseudo/bootstrap-tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ BSARGS= DESTDIR= \

legacy: .MAKE .META
mkdir -p ${LEGACY_TOOLS}
${MAKE} -C ${SRCTOP}/etc distrib-dirs DESTDIR=${BTOOLSDIR} > $@2
${MAKE} -C ${SRCTOP}/etc distrib-dirs DESTDIR=${LEGACY_TOOLS} > $@
${MAKE} -C ${SRCTOP}/etc distrib-dirs DESTDIR=${BTOOLSDIR} \
> $@.distrib-dirs_btoolsdir
${MAKE} -C ${SRCTOP}/etc distrib-dirs DESTDIR=${LEGACY_TOOLS} \
> $@.distrib-dirs_legacy_tools
${BSENV} ${MAKE} -C ${SRCTOP} -f Makefile.inc1 ${BSARGS} $@
touch $@

Expand Down
4 changes: 3 additions & 1 deletion targets/pseudo/stage/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ all:
# we don't need to see it.
stage-distrib-dirs: .META
mkdir -p ${STAGE_OBJTOP}
${.MAKE} -C ${SRCTOP}/etc distrib-dirs -DWITH_TESTS DESTDIR=${STAGE_OBJTOP} > $@
${.MAKE} -C ${SRCTOP}/etc distrib-dirs -DWITH_TESTS \
DESTDIR=${STAGE_OBJTOP} > $@.distrib_dirs
touch $@

.include <bsd.prog.mk>

Expand Down

0 comments on commit 066a643

Please sign in to comment.