Follow-up Comment #2, bug #51495 (project make): Henrik, thanks, this is indeed a nice suggestion, which is indeed a trick worthy to appear in a make book :-)
It has two problems, though, compared to real built-in support for this feature: The first problem is of course unwieldiness - it is harder and uglier to create a makefile this way (splitting it into many separate makefiles), and it's easier and more natural to just forget to do it - so most makefiles will continue not to enjoy this feature. The second problem is that it doesn't support user-specified parameters. In your example, imagine that a user runs "make LDFLAGS="-lm -s". link.mk hasn't changed, so the makefile will not know that the linking stage needs to run again, even though the rule did change because LDFLAGS changed since the last run. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?51495> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make