This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Deep packages, constructing the configure.am and Makefile.am


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]