Hi Chen, is it important that make expands your vars? If the shell can do it, simply write:
---- filelist= f1.c f2.c f3.c all: @for x in $(filelist); do echo $$x; done ---- > > I'd like to dynamically generate N shell commands under "all" targets when > filelist has N words. How can I do it? Without the ultimate solution, > everytime I add a word to filelist, I have to manually add one command line > under "all". Quite boring, right? > _______________________________________________ Help-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-make
