summaryrefslogtreecommitdiffstats
path: root/phantasia
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>2004-02-08 22:14:27 +0000
committerlukem <lukem@NetBSD.org>2004-02-08 22:14:27 +0000
commit5b7fc9054f148aadb5b501dd6d5a818bd6101383 (patch)
tree2da5f10eac37aa05f8919c31a9bee287d5e39c8c /phantasia
parent23734f8d580f6b1b4030bd2216d04096e2902f5f (diff)
downloadbsdgames-darwin-5b7fc9054f148aadb5b501dd6d5a818bd6101383.tar.gz
bsdgames-darwin-5b7fc9054f148aadb5b501dd6d5a818bd6101383.tar.zst
bsdgames-darwin-5b7fc9054f148aadb5b501dd6d5a818bd6101383.zip
Fix race in parallel make when creating multiple targets in one operation.
Diffstat (limited to 'phantasia')
-rw-r--r--phantasia/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/phantasia/Makefile b/phantasia/Makefile
index 45ce1e41..1eb58c87 100644
--- a/phantasia/Makefile
+++ b/phantasia/Makefile
@@ -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>
@@ -26,13 +26,16 @@ FILES+=${file}
.endif
.endfor
-CLEANFILES+=map setup setup.lo host_phantglobs.lo ${ALLFILES}
+CLEANFILES+=map setup setup.lo host_phantglobs.lo ${ALLFILES} files.stamp
realall: ${FILES}
-${FILES}: setup monsters.asc
+${FILES}: files.stamp
+files.stamp: setup monsters.asc
${_MKMSG_CREATE} ${FILES}
+ rm -f ${.TARGET}
./setup -m ${.CURDIR}/monsters.asc
+ touch ${.TARGET}
setup: host_phantglobs.lo setup.lo ${LIBM}
${_MKTARGET_LINK}