Follow-up Comment #8, bug #30606 (project make): I still haven't figured out how to fix my Makefile, so I'll take Paul up on his offer.
I have a command to generate Graphviz input files from CSV files. My initial rule looked like this (but with a TAB, of course): %.dot: %.csv deps.pl $? > $@ But the command has several options that I often use, in various combinations. The number of option values for each is finite, so I can just enumerate all possible combinations: %.dot: %.csv deps.pl $? > $@ %-b.dot: %.csv deps.pl -b $? > $@ %-a0.dot: %.csv deps.pl -a0 $? > $@ %-a0-b.dot: %.csv deps.pl -b -a0 $? > $@ %-a1.dot: %.csv deps.pl -a0 $? > $@ %-a1-b.dot: %.csv deps.pl -b -a0 $? > $@ %-d.dot: %.csv deps.pl -t. $? >$@ %-d-b.dot: %.csv deps.pl -t. -b $? > $@ (...) I'm trying to summarize these rules into a single one with a couple of nested foreach loops (or anything else) to loop over the possible option values (including nothing at all). Note that suffix and option aren't always identical. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?30606> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make