]> git.cameronkatri.com Git - bsdgames-darwin.git/commitdiff
Fix race in parallel make when creating multiple targets in one operation.
authorlukem <lukem@NetBSD.org>
Sun, 8 Feb 2004 22:14:27 +0000 (22:14 +0000)
committerlukem <lukem@NetBSD.org>
Sun, 8 Feb 2004 22:14:27 +0000 (22:14 +0000)
phantasia/Makefile

index 45ce1e41e0c9481bce50a0be81ea45852265724c..1eb58c876edcec24f06de6b291afea8cc5903bf2 100644 (file)
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.32 2003/11/16 14:14:18 lukem Exp $
+#      $NetBSD: Makefile,v 1.33 2004/02/08 22:14:27 lukem Exp $
 #      @(#)Makefile    8.1 (Berkeley) 5/31/93
 
 .include <bsd.own.mk>
 #      @(#)Makefile    8.1 (Berkeley) 5/31/93
 
 .include <bsd.own.mk>
@@ -26,13 +26,16 @@ FILES+=${file}
 .endif
 .endfor
 
 .endif
 .endfor
 
-CLEANFILES+=map setup setup.lo host_phantglobs.lo ${ALLFILES}
+CLEANFILES+=map setup setup.lo host_phantglobs.lo ${ALLFILES} files.stamp
 
 realall: ${FILES}
 
 
 realall: ${FILES}
 
-${FILES}: setup monsters.asc
+${FILES}: files.stamp
+files.stamp: setup monsters.asc
        ${_MKMSG_CREATE} ${FILES}
        ${_MKMSG_CREATE} ${FILES}
+       rm -f ${.TARGET}
        ./setup -m ${.CURDIR}/monsters.asc
        ./setup -m ${.CURDIR}/monsters.asc
+       touch ${.TARGET}
 
 setup: host_phantglobs.lo setup.lo ${LIBM} 
        ${_MKTARGET_LINK}
 
 setup: host_phantglobs.lo setup.lo ${LIBM} 
        ${_MKTARGET_LINK}