summaryrefslogtreecommitdiffstats
path: root/tests/sys/kern/acct/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sys/kern/acct/Makefile')
-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 966fe9a..03fad6d 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: ${SRCTOP}/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