Re: SUBDIRS and AC_CONFIG_FILES

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Kamaljit,

* Kamaljit Singh wrote on Mon, Jan 07, 2008 at 11:15:03PM CET:
> Currently I have all the SUBDIRS set in specific Makefile.am's as well as I have
> the same subdirs' Makefile specified in AC_CONFIG_FILES in the configure.ac.
> 
> Is there some better way to avoid specifying the same information twice ?
> Maybe an AC macro that can recursively extract this information from
> the Makefile.am given the root ?  Or some other niftier way ?

For simple setups without subpackages (AC_CONFIG_SUBDIRS) you
can just do something like this:

  ( echo 'AC_CONFIG_FILES(['
    find . -name Makefile.am | sed '/\/\.svn\//d; s|^\./||'
    echo '])'
  ) >> configure.ac

And no, I don't know of an Autoconf/Automake way to do this.
The double mentioning is to allow non-Automake, non-Autoconf
generated Makefiles in subdirectories.

Cheers,
Ralf


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux