At Sunday 25 April 2010, Ralf Wildenhues <[email protected]>
wrote:
> First step would be to write a new testsuite test to clearly expose
> this issue; for example by adding a flag to yacc or lex invocation
> that won't be added by the internal rules. Silent mode is not
> relevant for this.
I think I've succeded in doing this. I will soon post the relevant
patch to automake-patches.
> Then, look at automake.in:lang_yacc_target_hook. It already
> computes the name of the .c file. The missing part is then to
> find out whether the .$(OBJEXT) or .lo file is renamed (and thus
> will already be handled by an explicit rule anyway), or whether it
> will be handled by one of the suffix rules .c.$(OBJEXT) or .c.lo.
> Only in the latter two cases we should add an explicit dependency.
>
Thanks for the pointers. I'll give a try soonish (or not-so-soonish).
Regards,
Stefano