----- Original Message -----
From: "Tom Tromey" <[EMAIL PROTECTED]>
To: "Robert Collins" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, May 06, 2001 6:42 AM
Subject: Re: target dependency bug
> >>>>> "Robert" == Robert Collins <[EMAIL PROTECTED]>
writes:
>
> I finally read this thread.
>
> Robert> cf_gen_SOURCES = cf_gen.c defines.h
> Robert> nodist_cf_gen_SOURCES = cf_gen_defines.h
> Robert> BUILT_SOURCES = cf_gen_defines.h
>
> Robert> I think cf_gen_defines.h should be one of the dependencies of
> Robert> cf_gen.$(OBJEXT). It's not though in my generated Makefile
> Robert> here. Suggestions?
>
> Unfortunately automake can't know this in advance.
>
> You might think we could add any .h file listed in _SOURCES to the
> dependency of any .o derived from _SOURCES. But that would be too
> eager.
>
> So in the end I don't think there's anything to change here.
I understand. However
cf_gen.$(OBJEXT): cf_gen_defines.h
is somewhat ugly for an automake file :]
Rob
>
> Tom
>