bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dependencies in BUILT_SOURCES


From: Ralf Wildenhues
Subject: Re: Dependencies in BUILT_SOURCES
Date: Thu, 8 Jun 2006 09:55:02 +0200
User-agent: Mutt/1.5.11

Hi Jérôme,

Thanks for reporting this.

* Jérôme Pouiller wrote on Tue, Jun 06, 2006 at 06:10:43PM CEST:
> 
> This is not really a bug, but a lack of documentation.
> 
> BUILT_SOURCES = templates.h data.h
> 
> But my binary which make templates.h depend of data.h.
> So Automake cannot detect correctly dependencies and I need to add rule 
> 
> templates.h: data.h

Yes.  But this is just because neither automake nor make can know that
templates.h depends upon data.h unless you tell it somehow.  The usual
way for informing make about dependencies is to write them down as above.
The usual way to do this in automake files is to either do likewise, if
the target is generated by a hand-written rule, or to use *_DEPENDENCIES
if generated by an automake-written rule, unless automake already knows
about this dependency itself (in which case nothing needs to be done).

I fail to see where your example needs mention in the documentation,
sorry.

Cheers,
Ralf




reply via email to

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