Hello,
  I have noticed that suffix rules do not work with per-target flags.

If you have

.q.c:
        cp $< $@
foo_SOURCES = bar.q
foo_CPPFLAGS = -I dir

Then the generated rule looks like:

foo-bar.o: bar.q
        ... gcc bar.q ...

while both occurences of `bar.q' should obviously be `bar.c'.

I observed this with a recent CVS Automake and subdir-objects option,
but I think there is a possibility that the same bug is present in
other situations, too.

(No test case, no fix, just a quck bug report, sorry.)

I reported a somewhat similar bug a year ago:
http://lists.gnu.org/archive/html/bug-automake/2005-07/msg00109.html
The report was not answered, so I guess the bug is probably still
there.

Have a nice day,
        Stepan


Reply via email to