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 .ORDER to avoid race



details:   https://anonhg.NetBSD.org/src/rev/9a478d67718b
branches:  trunk
changeset: 750019:9a478d67718b
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Dec 14 05:23:39 2009 +0000

description:
use .ORDER to avoid race

diffstat:

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

diffs (29 lines):

diff -r 564ae445da6a -r 9a478d67718b usr.bin/ktruss/Makefile
--- a/usr.bin/ktruss/Makefile   Mon Dec 14 05:13:38 2009 +0000
+++ b/usr.bin/ktruss/Makefile   Mon Dec 14 05:23:39 2009 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.27 2009/12/11 16:10:56 uebayasi Exp $
+#      $NetBSD: Makefile,v 1.28 2009/12/14 05:23:39 christos Exp $
 
 NOMAN=         # defined
 
@@ -14,13 +14,17 @@
 LDSTATIC?=-static
 .endif
 
+# Hint for mkdep(1).
 dump.c: misc.h
 
+# Avoid race.
+.ORDER: 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}
-       ${GENCMD} ${.TARGET} \
-       AWK="${TOOL_AWK:Q}" CPP="${CPP:Q}" CPPFLAGS="${CPPFLAGS:Q}" \
+       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