[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dependencies in BUILT_SOURCES
From: |
Jérôme Pouiller |
Subject: |
Re: Dependencies in BUILT_SOURCES |
Date: |
Thu, 8 Jun 2006 10:17:43 +0200 |
User-agent: |
KMail/1.9.1 |
Le Jeudi 8 Juin 2006 09:55, Ralf Wildenhues a écrit :
> 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
I have forgotten solution of *_DEPENDENCIES.
> 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.
Eventually, in "Built sources" section
(http://www.gnu.org/software/automake/manual/html_mono/automake.html#Sources).
But it is not very important; this mail will be documentation as soon
as Google will referenced it. :-)
--
Jérôme Pouiller (Jezz) <jerome.pouiller AT gmail.com>