Re: prerequisites alter choice of pattern match rules?

2013-02-25 Thread Philip Guenther
On Mon, Feb 25, 2013 at 5:57 AM, Brian J. Murrell wrote: > I would think that given the following set of rules: > > /tmp/%.foo: %.foo > echo "foo rule 1" > touch $@ > > %.foo: > echo "foo rule 2" > touch $@ > > /tmp/%.bar: > make $*.bar > echo "bar r

Re: prerequisites alter choice of pattern match rules?

2013-02-25 Thread Philip Guenther
On Mon, Feb 25, 2013 at 2:30 PM, Sebastian Pipping wrote: ... > It seems like normally GNU make walks the path of the most specific > match in case of ambiguities. I wonder if that's specified/documented > anywhere. Yes, it is. I don't remember where, but it's in the docs. Philip Guenther __

Re: prerequisites alter choice of pattern match rules?

2013-02-25 Thread Sebastian Pipping
On 25.02.2013 14:57, Brian J. Murrell wrote: > Hi, > > I have run into something I find strange with GNU Make 3.81 (yes, I know > 3.82 is latest but since it's not in EL6, my target platform, I cannot > depend on it's features). > > I would think that given the following set of rules: > > /tmp/%

prerequisites alter choice of pattern match rules?

2013-02-25 Thread Brian J. Murrell
Hi, I have run into something I find strange with GNU Make 3.81 (yes, I know 3.82 is latest but since it's not in EL6, my target platform, I cannot depend on it's features). I would think that given the following set of rules: /tmp/%.foo: %.foo echo "foo rule 1" touch $@ %.foo: