>>> So you have in your toolbox $(shell) and $(eval). >> >> I am not familiar enough with the second make function. >> http://www.gnu.org/software/make/manual/html_node/Eval-Function.html > > I wrote some blog posts about eval and other metaprogramming techniques > in make that you might find interesting: > > http://make.mad-scientist.net/category/metaprogramming/
How many software implementations support the eval function in make files? >>> # Then you might use eval to generate rules dynamically: >>> >>> $(foreach N,$(NPROC),$(eval >>> # YOUR DYNAMIC RULE >>> MYTARGET_$(N): >>> <TAB>mytool --dosomething -o$@ >>> ) >>> ) How do you think about to mention in the manual how several parameters can be passed? When should parameters be used as further function arguments? Regards, Markus _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make