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 - Normal Item Group:  Bug
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  SCM Operating System:  POSIX-Based
Fixed Release:  None Triage 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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.3