summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruebayasi <uebayasi@NetBSD.org>2009-12-11 16:10:56 +0000
committeruebayasi <uebayasi@NetBSD.org>2009-12-11 16:10:56 +0000
commitafecdcdcbcb77a1efc65733ce16a463aa9f58c16 (patch)
tree0b9e2fa41e0e66313394c7fbbc4e141d266288f1
parentbab9f7218a4fdc30a2638fa87389cdb98f248d62 (diff)
Use $GENCMD to generate misc.[ch]. Carefully quote strings.
-rw-r--r--usr.bin/ktruss/Makefile10
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.bin/ktruss/Makefile b/usr.bin/ktruss/Makefile
index 42275c09ea9..2536bc7607e 100644
--- a/usr.bin/ktruss/Makefile
+++ b/usr.bin/ktruss/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2009/12/08 02:56:37 uebayasi Exp $
+# $NetBSD: Makefile,v 1.27 2009/12/11 16:10:56 uebayasi Exp $
NOMAN= # defined
@@ -14,17 +14,13 @@ CLEANFILES+= misc.c misc.h
LDSTATIC?=-static
.endif
-# Hint for mkdep(1).
dump.c: misc.h
-# Avoid race.
-misc.c: misc.h
-
-# Build-time generation.
misc.c misc.h: ${DESTDIR}/usr/include/sys/errno.h makeerrnos.sh \
${DESTDIR}/usr/include/sys/signal.h
${_MKTARGET_CREATE}
- AWK=${TOOL_AWK:Q} CPP=${CPP:Q} CPPFLAGS=${CPPFLAGS:Q} \
+ ${GENCMD} ${.TARGET} \
+ AWK="${TOOL_AWK:Q}" CPP="${CPP:Q}" CPPFLAGS="${CPPFLAGS:Q}" \
${HOST_SH} ${.CURDIR}/makeerrnos.sh \
${DESTDIR}/usr/include/sys/errno.h \
${DESTDIR}/usr/include/sys/signal.h misc