bugmake - Bugs: bug #52267, No rule to make target, when...


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

Submitted by:  Koen Van Hoof <kvho>
Submitted on:  Mon 23 Oct 2017 09:24:53 AM UTC  
Severity: 3 - NormalItem Group: Bug
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: SCMOperating System: POSIX-Based
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 23 Oct 2017 09:24:53 AM UTC, original submission:

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;

Koen Van Hoof <kvho>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by kvho (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup1