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 should ignore makeDependfile



details:   https://anonhg.NetBSD.org/src/rev/c8c9ed7ad810
branches:  trunk
changeset: 769187:c8c9ed7ad810
user:      sjg <sjg%NetBSD.org@localhost>
date:      Fri Sep 02 16:26:21 2011 +0000

description:
meta_oodate should ignore makeDependfile

diffstat:

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

diffs (26 lines):

diff -r ec6835da83ab -r c8c9ed7ad810 usr.bin/make/meta.c
--- a/usr.bin/make/meta.c       Fri Sep 02 16:09:01 2011 +0000
+++ b/usr.bin/make/meta.c       Fri Sep 02 16:26:21 2011 +0000
@@ -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.



Home | Main Index | Thread Index | Old Index