bug-make
[Top][All Lists]
Advanced

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

[bug #52267] No rule to make target, when re-including file after being


From: Koen Van Hoof
Subject: [bug #52267] No rule to make target, when re-including file after being generated
Date: Mon, 23 Oct 2017 05:24:54 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0

URL:
  <http://savannah.gnu.org/bugs/?52267>

                 Summary: No rule to make target,  when re-including file
after being generated
                 Project: make
            Submitted by: kvho
            Submitted on: Mon 23 Oct 2017 11:24:53 AM CEST
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: SCM
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

In buildroot makefile https://git.busybox.net/buildroot/tree/Makefile
following lines

-include SOMEFILE
$(shell create SOMEFILE)
include SOMEFILE

results in
make: *** No rule to make target 'SOMEFILE'.  Stop.

Easy to fix:
--- a/read.c
+++ b/read.c
@@ -412,6 +412,8 @@ eval_makefile (const char *filename, int
       deps->file->last_mtime = NONEXISTENT_MTIME;
       return deps;
     }
+  else if (deps->file->last_mtime == NONEXISTENT_MTIME)
+    deps->file->last_mtime = UNKNOWN_MTIME;
 
   /* Success; clear errno.  */
   deps->error = 0;





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52267>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]