[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #30606] mysterious behavior from $(if)
From: |
Reinier Post |
Subject: |
[bug #30606] mysterious behavior from $(if) |
Date: |
Fri, 29 Oct 2010 12:24:54 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 GTB7.1 |
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 #30606] mysterious behavior from $(if),
Reinier Post <=