summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2014-03-22 10:36:23 +0000
committerMarc Espie <espie@cvs.openbsd.org>2014-03-22 10:36:23 +0000
commit7fbf4fc2d5e11339ab9ae86bbf04155e2d20f8db (patch)
tree1052e6a7b6c84b214614c275b0c508b0192beddc
parentafb8e74a11873ddcda50f71db0572eb128124f21 (diff)
don't use >$@ directly
-rw-r--r--usr.bin/make/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/make/Makefile b/usr.bin/make/Makefile
index 65e5046c9c5..c20dd00f03b 100644
--- a/usr.bin/make/Makefile
+++ b/usr.bin/make/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.56 2013/04/23 14:32:53 espie Exp $
+# $OpenBSD: Makefile,v 1.57 2014/03/22 10:36:22 espie Exp $
PROG= make
CFLAGS+= -I${.OBJDIR} -I${.CURDIR}
@@ -35,13 +35,13 @@ MAGICVARSLOTS=77
MAGICCONDSLOTS=65
varhashconsts.h: generate
- ${.OBJDIR}/generate 1 ${MAGICVARSLOTS} >${.TARGET}
+ ${.OBJDIR}/generate 1 ${MAGICVARSLOTS} >$@.tmp && mv $@.tmp $@
condhashconsts.h: generate
- ${.OBJDIR}/generate 2 ${MAGICCONDSLOTS} >${.TARGET}
+ ${.OBJDIR}/generate 2 ${MAGICCONDSLOTS} >$@.tmp && mv $@.tmp $@
nodehashconsts.h: generate
- ${.OBJDIR}/generate 3 0 >${.TARGET}
+ ${.OBJDIR}/generate 3 0 >$@.tmp && mv $@.tmp $@
generate: generate.c stats.c memory.c
${HOSTCC} ${LDSTATIC} -o ${.TARGET} ${HOSTCFLAGS} ${.ALLSRC} ${LDADD}