Module Name:    src
Committed By:   sjg
Date:           Sat Jul 11 00:39:53 UTC 2020

Modified Files:
        src/usr.bin/make: meta.c

Log Message:
meta_oodate: if target is explicitly .META missing is oodate

If a .meta file is missing for a target marked .META
it is out-of-date


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 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.85 src/usr.bin/make/meta.c:1.86
--- src/usr.bin/make/meta.c:1.85	Fri Jul  3 08:13:23 2020
+++ src/usr.bin/make/meta.c	Sat Jul 11 00:39:53 2020
@@ -1,4 +1,4 @@
-/*      $NetBSD: meta.c,v 1.85 2020/07/03 08:13:23 rillig Exp $ */
+/*      $NetBSD: meta.c,v 1.86 2020/07/11 00:39:53 sjg Exp $ */
 
 /*
  * Implement 'meta' mode.
@@ -1606,7 +1606,7 @@ meta_oodate(GNode *gn, Boolean oodate)
 	    oodate = TRUE;
 	}
     } else {
-	if (writeMeta && metaMissing) {
+	if (writeMeta && (metaMissing || (gn->type & OP_META))) {
 	    cp = NULL;
 
 	    /* if target is in .CURDIR we do not need a meta file */

Reply via email to