* 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