Module Name:    src
Committed By:   christos
Date:           Mon Dec 14 05:23:39 UTC 2009

Modified Files:
        src/usr.bin/ktruss: Makefile

Log Message:
use .ORDER to avoid race


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/usr.bin/ktruss/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/ktruss/Makefile
diff -u src/usr.bin/ktruss/Makefile:1.27 src/usr.bin/ktruss/Makefile:1.28
--- src/usr.bin/ktruss/Makefile:1.27	Fri Dec 11 11:10:56 2009
+++ src/usr.bin/ktruss/Makefile	Mon Dec 14 00:23:39 2009
@@ -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

Reply via email to