Module Name: src
Committed By: sjg
Date: Fri Sep 2 16:26:21 UTC 2011
Modified Files:
src/usr.bin/make: meta.c
Log Message:
meta_oodate should ignore makeDependfile
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/make/meta.c
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/make/meta.c
diff -u src/usr.bin/make/meta.c:1.22 src/usr.bin/make/meta.c:1.23
--- src/usr.bin/make/meta.c:1.22 Sun Aug 28 03:54:07 2011
+++ src/usr.bin/make/meta.c Fri Sep 2 16:26:21 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: meta.c,v 1.22 2011/08/28 03:54:07 sjg Exp $ */
+/* $NetBSD: meta.c,v 1.23 2011/09/02 16:26:21 sjg Exp $ */
/*
* Implement 'meta' mode.
@@ -1108,6 +1108,16 @@
if (strncmp(p, "/etc/", 5) == 0)
break;
+ if ((cp = strrchr(p, '/'))) {
+ cp++;
+ /*
+ * We don't normally expect to see this,
+ * but we do expect it to change.
+ */
+ if (strcmp(cp, makeDependfile) == 0)
+ break;
+ }
+
/*
* The rest of the record is the file name.
* Check if it's not an absolute path.