[bug #66011] dependencies after a non-existing file are silently ignored

2024-07-21 Thread anonymous
URL: Summary: dependencies after a non-existing file are silently ignored Group: make Submitter: None Submitted: Sun 21 Jul 2024 09:56:54 AM UTC Severity: 3 - Normal

[bug #66011] dependencies after a non-existing file are silently ignored

2024-07-21 Thread Dmitry Goncharov
Follow-up Comment #1, bug #66011 (group make): This rule %.o : %.c $(HEADERS) Makefile does not apply because nonexisting.h does not exist. To make there is simply no rule in this makefile to build *.o files. You want to do something like this instead hello.o: $(HEADERS) Makefile %.o : %.c

[bug #66011] dependencies after a non-existing file are silently ignored

2024-07-21 Thread anonymous
Follow-up Comment #2, bug #66011 (group make): If all the files listed in the prerequisites do exist, the pattern rule that I wrote works fine. To quote the GNU Make Manual section 10.5.1: > There may also be prerequisites that do not use ‘%’; such a prerequisite attaches to every file made by th

[bug #66011] dependencies after a non-existing file are silently ignored

2024-07-21 Thread Dmitry Goncharov
Follow-up Comment #3, bug #66011 (group make): If you need such a prerequisite and the prerequisite is missing, then the makefile needs to have a rule to build such a prerequisite. Depending on your situation this rule can be either a proper rule or dummy rule like nonexisting.h:; In the end,