Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make Don't attempt to touch special targets; make -t...



details:   https://anonhg.NetBSD.org/src/rev/78a971b66456
branches:  trunk
changeset: 767830:78a971b66456
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Aug 01 02:13:21 2011 +0000

description:
Don't attempt to touch special targets; make -t would create .END in every
directory.

diffstat:

 usr.bin/make/job.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 3a1723cd3703 -r 78a971b66456 usr.bin/make/job.c
--- a/usr.bin/make/job.c        Sun Jul 31 23:10:58 2011 +0000
+++ b/usr.bin/make/job.c        Mon Aug 01 02:13:21 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: job.c,v 1.156 2011/03/31 06:28:42 sjg Exp $    */
+/*     $NetBSD: job.c,v 1.157 2011/08/01 02:13:21 christos Exp $       */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -70,14 +70,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: job.c,v 1.156 2011/03/31 06:28:42 sjg Exp $";
+static char rcsid[] = "$NetBSD: job.c,v 1.157 2011/08/01 02:13:21 christos Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)job.c      8.2 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: job.c,v 1.156 2011/03/31 06:28:42 sjg Exp $");
+__RCSID("$NetBSD: job.c,v 1.157 2011/08/01 02:13:21 christos Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -1135,7 +1135,8 @@
     int                  streamID;     /* ID of stream opened to do the touch */
     struct utimbuf times;      /* Times for utime() call */
 
-    if (gn->type & (OP_JOIN|OP_USE|OP_USEBEFORE|OP_EXEC|OP_OPTIONAL|OP_PHONY)) {
+    if (gn->type & (OP_JOIN|OP_USE|OP_USEBEFORE|OP_EXEC|OP_OPTIONAL|
+       OP_SPECIAL|OP_PHONY)) {
        /*
         * .JOIN, .USE, .ZEROTIME and .OPTIONAL targets are "virtual" targets
         * and, as such, shouldn't really be created.



Home | Main Index | Thread Index | Old Index