automake
[Top][All Lists]
Advanced

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

Re: Aw: Re: Generating 'cat' pages on make install


From: Ralf Wildenhues
Subject: Re: Aw: Re: Generating 'cat' pages on make install
Date: Tue, 6 Nov 2007 05:22:42 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

* Ralf Wildenhues wrote on Tue, Nov 06, 2007 at 05:11:13AM CET:
> * Benoit Sigoure wrote on Tue, Nov 06, 2007 at 01:31:42AM CET:
> 
> > --Makefile.am-------------------------------------------
> > bin_PROGRAMS = foo
> > foo_SOURCES = foo.c
> > BUILT_SOURCES = foo.c
> > 
> > foo.c:
> >         echo 'int main(){return 0;}' >$@
> 
> Your foo.c gets distributed because it's in foo_SOURCES.

And BTW your foo.c would not need to be a built source anyway,
as there is already a rule that depends upon it (the .c.o one).
Typically, BUILT_SOURCES are needed for headers upon which no
explicit dependencies exist at the first time the package is
built.

Cheers,
Ralf




reply via email to

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