]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Don't create cookie until the command is all finished, it or the commands
authorbdrewery <bdrewery@FreeBSD.org>
Thu, 1 Oct 2015 21:52:25 +0000 (21:52 +0000)
committerbdrewery <bdrewery@FreeBSD.org>
Thu, 1 Oct 2015 21:52:25 +0000 (21:52 +0000)
after may fail.

Sponsored by: EMC / Isilon Storage Division

targets/pseudo/bootstrap-tools/Makefile
targets/pseudo/stage/Makefile

index 1b0ebde783fe2df752e832e9ffa9c6319a69dee3..b0e62d58d7c44b1457480e817f19c927f82e9469 100644 (file)
@@ -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 $@
 
index 0889ad20208fdf9184af78acac588fb06dba5c50..55512e287eac89a3086d50027d64c5c2ce5ba635 100644 (file)
@@ -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>