Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/ktruss Use $GENCMD to generate misc.[ch]. Carefully...



details:   https://anonhg.NetBSD.org/src/rev/c4e14bc0896f
branches:  trunk
changeset: 749863:c4e14bc0896f
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Fri Dec 11 16:10:56 2009 +0000

description:
Use $GENCMD to generate misc.[ch].  Carefully quote strings.

diffstat:

 usr.bin/ktruss/Makefile |  10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diffs (29 lines):

diff -r e7a2a99ef5ed -r c4e14bc0896f usr.bin/ktruss/Makefile
--- a/usr.bin/ktruss/Makefile   Fri Dec 11 16:09:03 2009 +0000
+++ b/usr.bin/ktruss/Makefile   Fri Dec 11 16:10:56 2009 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index