Hello list. I need help with compacting a series of rules like (from a Qwt makefile):
animation_OBJ = examples/animation/main.obj \ examples/animation/plot.obj barchart_OBJ = examples/barchart/barchart.obj \ examples/barchart/main.obj \ examples/barchart/moc_barchart.obj bin/animation.exe: $(animation_OBJ) $(LIBS) $(call link_EXE, $@, $^) bin/barchart.exe: $(barchart_OBJ) $(LIBS) $(call link_EXE, $@, $^) ... plus a lot more into a more compact rule like: bin/%.exe: $($(@F)_OBJ) $(LIBS) $(call link_EXE, $@, $^) But I fail to get a correct param-2 for my link_EXE macro. What would be the correct syntax for this? (if at all possible). This is for MSVC/clang-cl. I'm on Windows-10 using GNU-make v 4.2.90. -- --gv _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make