[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: target dependency bug
From: |
Robert Collins |
Subject: |
Re: target dependency bug |
Date: |
Sun, 6 May 2001 13:07:26 +1000 |
----- Original Message -----
From: "Tom Tromey" <address@hidden>
To: "Robert Collins" <address@hidden>
Cc: <address@hidden>
Sent: Sunday, May 06, 2001 6:42 AM
Subject: Re: target dependency bug
> >>>>> "Robert" == Robert Collins <address@hidden>
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
>