Follow-up Comment #4, bug#63840 (group make): Sorry for the delay in examining this bug. I understand what you are saying. A counter-argument would be that if you wanted to use "-r" and also provide match-anything rules, that you should also be assigning proper suffixes via ".SUFFIXES" to ensure that your source files are handled properly:
hello.c: %: %.o; $(info $@ from $<) # this should be added since you have a match-anything rule .SUFFIXES: .c However, I tend to agree with you that this is perhaps too much "inside baseball" for the default behavior. I think you are mostly correct in your determination of the problem with one exception: when the .SUFFIXES list is cleared explicitly, then we should not create any dummy pattern rules and thus these match-anything rules SHOULD be matched. What we should probably do is not clear the .SUFFIXES list by default when -r is given, but instead simply not create the default rules associated with those suffixes. I have a simple patch that does that; if you agree that's OK I'll push it along with your tests. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?63840> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/