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/
_______________________________________________
Bug-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-make