Benoit Sigoure
Wed, 09 Jan 2008 14:54:01 -0800
On Jan 8, 2008, at 8:33 PM, Ralf Wildenhues wrote:
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.
Wouldn't it be possible to generate the list with m4_esyscmd? -- Benoit Sigoure aka Tsuna EPITA Research and Development Laboratory _______________________________________________ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf