* 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