Subject: make seems to find the wrong source file
To: None <firstname.lastname@example.org>
From: David Laight <email@example.com>
Date: 01/11/2004 16:10:42
With the following makefile:
.SUFFIXES: .a .b
all: .PHONY x.b
make tries to generate x.b using the commands from the .a.b suffix rule,
but using the source file dir/x.a, rather that the source
file implied by the suffix rule.
I'm not sure this is (ever) desirable.
Note that it requies the filename to match - so it will only ever
build x.a, never y.a using the commands from the suffix rule.
It causes particular problems when the 'x.b: dir/x.a' line comes
from the .depend file which also contains '.OPTIONAL: dir/x.a' and
the source files have all been moved to a different directory.
Does anyone think this is a desirable feature?
If I fix it, is anything else likely to break?
David Laight: firstname.lastname@example.org