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:11:13 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

* Benoit Sigoure wrote on Tue, Nov 06, 2007 at 01:31:42AM CET:
> On Nov 5, 2007, at 9:46 PM, Jason Curl wrote:
> >Benoit Sigoure wrote:
> >>
> >>BUILT_SOURCES are automatically distributed, so you can only list  
> >>man_MANS in EXTRA_DIST.

No, BUILT_SOURCES are not automatically distributed.  See for example in
the section `Built sources example' of the manual:
     bin_PROGRAMS = foo
     foo_SOURCES = foo.c
     nodist_foo_SOURCES = bindir.h
     BUILT_SOURCES = bindir.h
     CLEANFILES = bindir.h
     bindir.h: Makefile
             echo '#define bindir "$(bindir)"' >$@

Doing so automatically would be a bit limiting.

[...]
> --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.

Cheers,
Ralf




reply via email to

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