Module Name: src
Committed By: sjg
Date: Thu Aug 18 00:00:21 UTC 2011
Modified Files:
src/usr.bin/make: meta.c
Log Message:
If a target is explicitly flagged .META,
a missing .meta file means it is out-of-date.
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 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.20 src/usr.bin/make/meta.c:1.21
--- src/usr.bin/make/meta.c:1.20 Wed Jun 22 21:13:12 2011
+++ src/usr.bin/make/meta.c Thu Aug 18 00:00:21 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: meta.c,v 1.20 2011/06/22 21:13:12 sjg Exp $ */
+/* $NetBSD: meta.c,v 1.21 2011/08/18 00:00:21 sjg Exp $ */
/*
* Implement 'meta' mode.
@@ -1254,6 +1254,12 @@
oodate = TRUE;
Lst_Destroy(missingFiles, (FreeProc *)free);
}
+ } else {
+ if ((gn->type & OP_META)) {
+ if (DEBUG(META))
+ fprintf(debug_file, "%s: required but missing\n", fname);
+ oodate = TRUE;
+ }
}
if (oodate && ignoreOODATE) {
/*