tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: make: avoid breaking backwards compatability
On Thu, Sep 04, 2014 at 04:28:11AM +0000, David Holland wrote:
> On Thu, Sep 04, 2014 at 02:47:40AM +0300, Jarmo Jaakkola wrote:
> > And any target
> > whose filename part was foo.X (where there is a rule .X.o), not just
> > foo.c, would have been accepted. And this was done even if subdir was
> > not in .PATH.
>
> Target? I think you mean source?
Well, they're all targets in the end, but you're correct. :)
> It should also not match foo.S in the sources if processing a .c.o
> rule, only a .S.o rule. If it was doing that, that would be a bug too.
> It should only match in the .S.o rule.
Just to be clear: it is not looking at .c.o rule or a .S.o rule at this
point. It has all options open.
foo.o: dir/foo.X foo.c dir/foo.c
Make has not somehow decided that foo.o can only be made from C files.
It will use dir/foo.X, if it has the rule, instead of foo.c or
dir/foo.c.
--
Jarmo Jaakkola
Home |
Main Index |
Thread Index |
Old Index