[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Suffix rules do not work with per-target options

From: Stepan Kasal
Subject: Suffix rules do not work with per-target options
Date: Thu, 13 Jul 2006 19:41:16 +0200
User-agent: Mutt/

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

If you have

        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:
The report was not answered, so I guess the bug is probably still

Have a nice day,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]