This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Deep packages, constructing the configure.am and Makefile.am
- To: Alex Hornby <alex@anvil.co.uk>
- Subject: Re: Deep packages, constructing the configure.am and Makefile.am
- From: Alexandre Oliva <oliva@dcc.unicamp.br>
- Date: 20 Jun 1999 01:20:17 -0300
- Cc: automake@gnu.org
- References: <14183.48387.464000.859694@prodigy.anvil.co.uk>
On Jun 16, 1999, Alex Hornby <alex@anvil.co.uk> wrote:
> I would like my package to find all Makefile.am's at configure, as
> this would make adding separate test directories easier. I cannot work
> out the m4 magic to dynamically set up the AC_OUTPUT line.
How about adding to Makefile.am:
$(srcdir)/configure.in: $(srcdir)/configure.inn
Makefiles=`(cd $(srcdir) && find . -name Makefile.am -print) | \
sed 's,\.am$,,'`; \
sed < $(srcdir)/configure.inn > $@t "s%@Makefiles@%$Makefiles%"
rm -f $@
mv $@t $@
Then, in configure.inn, write:
AC_OUTPUT([@Makefiles@])
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists