Question about pattern rule with multiple targets

2014-06-27 Thread Tom Varga
On page 120 of the gnumake manual, it mentions support for pattern rules with multiple targets. This pattern rule has two targets: %.tab.c %.tab.h: %.y bison -d $ So, if I have a simple rule that looks like: %.bar1 %.bar2 : %.foo touch $(*F).bar1 touch $(*F).bar2 and then do: touch a.foo

Re: Question about pattern rule with multiple targets

2014-06-27 Thread Philip Guenther
On Fri, Jun 27, 2014 at 11:24 AM, Tom Varga tomva...@gmail.com wrote: On page 120 of the gnumake manual, it mentions support for pattern rules with multiple targets. This pattern rule has two targets: %.tab.c %.tab.h: %.y bison -d $ So, if I have a simple rule that looks like: %.bar1

Re: Question about pattern rule with multiple targets

2014-06-27 Thread Tom Varga
b.zoo1 really only depends on b.bar1 b.zoo2 really only depends on b.bar2 However, only one rule (and tool) is used to build both b.bar1 and b.bar2 I really don't want force b.zoo1 to artificially depend on b.bar2 as it's not a real dependency. I was really just hoping to be able to convince

Re: Question about pattern rule with multiple targets

2014-06-27 Thread Tom Varga
I guess this bug is pretty much what I'm dealing with. However, it also exhibits itself even when not using pattern rules. ie : b.foo : touch b.foo b.bar1 b.bar2 : b.foo touch b.bar1 touch b.bar2 b.zoo1 : b.bar1 touch b.zoo1 b.zoo2 : b.bar2 touch b.zoo2

Re: Question about pattern rule with multiple targets

2014-06-27 Thread Philip Guenther
On Fri, Jun 27, 2014 at 2:52 PM, Tom Varga tomva...@gmail.com wrote: b.zoo1 really only depends on b.bar1 b.zoo2 really only depends on b.bar2 However, only one rule (and tool) is used to build both b.bar1 and b.bar2 I really don't want force b.zoo1 to artificially depend on b.bar2 as it's