Get the old behavior for a situation when no makefile is found in a directory.
authorBoris Kolpackov <boris@kolpackov.net>
Thu, 22 Oct 2009 14:29:22 +0000 (14:29 +0000)
committerBoris Kolpackov <boris@kolpackov.net>
Thu, 22 Oct 2009 14:29:22 +0000 (14:29 +0000)
ChangeLog
read.c

index 351953836825578b5ac6d5bcb0583262e96f282e..eceada6d645ae394e98fbb404a73cdeb96dd994d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-10-22  Boris Kolpackov  <boris@codesynthesis.com>
+
+       * read.c (read_all_makefiles): Mark the default makefile dependency
+       dontcare.
+
 2009-10-07  Boris Kolpackov  <boris@codesynthesis.com>
 
        * read.c (do_undefine): Free the expanded variable name.
diff --git a/read.c b/read.c
index aa27701dd4bf27acde15a6703dbe7bf35e9a79da..669a09cf57c14199b10499a29b4110c91261d682 100644 (file)
--- a/read.c
+++ b/read.c
@@ -269,7 +269,7 @@ read_all_makefiles (const char **makefiles)
            {
              struct dep *d = alloc_dep ();
              d->file = enter_file (strcache_add (*p));
-             d->file->dontcare = 1;
+             d->dontcare = 1;
              /* Tell update_goal_chain to bail out as soon as this file is
                 made, and main not to die if we can't make this file.  */
              d->changed = RM_DONTCARE;