Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make meta_oodate: if target is explicitly .META miss...



details:   https://anonhg.NetBSD.org/src/rev/c4d56e60100c
branches:  trunk
changeset: 935853:c4d56e60100c
user:      sjg <sjg%NetBSD.org@localhost>
date:      Sat Jul 11 00:39:53 2020 +0000

description:
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

diffstat:

 usr.bin/make/meta.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e7f130fddd0e -r c4d56e60100c usr.bin/make/meta.c
--- a/usr.bin/make/meta.c       Sat Jul 11 00:29:38 2020 +0000
+++ b/usr.bin/make/meta.c       Sat Jul 11 00:39:53 2020 +0000
@@ -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 @@
            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 */



Home | Main Index | Thread Index | Old Index