Try this rule (verified with GNU Make 4.2.1):
Simpler/more brutal: Remove the %.src part from your original rule to compile anything into an *.obj file if all possible source files can be compiled by the same sequence of instructions.%.obj: $(filter %.src,$<) # obj dummy compiler @echo compile $< to $@ cat $< > $@
In reply to Re: [OT] Making GNU make do what I mean
by Perlbotics
in thread [OT] Making GNU make do what I mean
by afoken
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |