summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/sys/kern/acct/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/sys/kern/acct/Makefile b/tests/sys/kern/acct/Makefile
index e0e2363..51f523d 100644
--- a/tests/sys/kern/acct/Makefile
+++ b/tests/sys/kern/acct/Makefile
@@ -6,12 +6,13 @@ ATF_TESTS_C= acct_test
CFLAGS+= -I${.OBJDIR}
-CLEANFILES+= convert.c
+CLEANFILES+= convert.c convert.c.tmp
DPSRCS.acct_test= convert.c
convert.c: ${.CURDIR:H:H:H:H}/sys/kern/kern_acct.c
sed -n -e 's/log(/syslog(/g' \
- -e '/FLOAT_CONVERSION_START/,/FLOAT_CONVERSION_END/p' ${.ALLSRC} >>${.TARGET}
+ -e '/FLOAT_CONVERSION_START/,/FLOAT_CONVERSION_END/p' ${.ALLSRC} >${.TARGET}.tmp
+ mv ${.TARGET}.tmp ${.TARGET}
.include <bsd.test.mk>
OpenPOWER on IntegriCloud