Mark Mitchell <[EMAIL PROTECTED]> writes:

> Ian Lance Taylor wrote:
> > "Joseph S. Myers" <[EMAIL PROTECTED]> writes:
> > 
> >> This is caused by --enable-generated-files-in-srcdir, as used by the 
> >> release script, hence not being seen by people configuring normally 
> >> without that option.
> 
> Thanks for the analysis!

Yes indeed, that was somewhat tricky.

> Can we do:
> 
> java_parse_c := java/parse.c
> ifeq ($(GENINSRC),)
> java_parse_c := $(srcdir)/$(java_parse_c)
> endif
> 
> $(java_parse_c): java/parse.y
>   -$(BISON) -t ... -o $@ $<
> 
> And, then, just have java/parse.o depend on $(java_parse_c)?

That is a better plan.  It seems like it ought to work.

Ian

Reply via email to