in reply to [OT] Making GNU make do what I mean
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 $< > $@
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: [OT] Making GNU make do what I mean
by afoken (Chancellor) on Sep 16, 2022 at 19:41 UTC | |
by Perlbotics (Archbishop) on Sep 17, 2022 at 08:58 UTC |
In Section
Seekers of Perl Wisdom