automake
[Top][All Lists]
Advanced

[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: Tue, 17 Apr 2001 15:11:05 +1000

> -----Original Message-----
> From: Alexandre Oliva [mailto:address@hidden
> Sent: Tuesday, April 17, 2001 3:16 PM
> To: Robert Collins
> Cc: Lars J. Aas; address@hidden
> Subject: Re: target dependency bug
> 
> 
> On Apr 17, 2001, "Robert Collins" 
> <address@hidden> wrote:
> 
> > cf_gen_defines.h is being built. But cf_gen.o isn't being 
> updated when
> > cf_gen_defines.h is updated.
> 
> Did you --enable-dependency-tracking?

I think so. I'm using gcc 2.95.3 - that does dependencies as a side
effect doesn't it ?
 
> > And AFAICT, automake has enough info to make cf_gen_defines.h a
> > dependency of cf_gen.o
> 
> How would it be able to it figure out?  You just told it
> cf_gen_defines.h is a source of cf_gen (the executable).  Why should
> it infer that it's cf_gen.o that depends on this header?

I see. Ok, I'll add it manually. 
 
> > I think I'm confused. Are you saying that CVS may make 
> cf_gen.$(OBJEXT)
> > depend on cf_gen_defines.h?
> 
> Nope.  I'm saying it would make sure BUILT_SOURCES are built before
> any other source files are compiled.
> 

Which it does.

Rob



reply via email to

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