automake
[Top][All Lists]
Advanced

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

Recursive initialization of autotools project?


From: Trevor Bain
Subject: Recursive initialization of autotools project?
Date: Fri, 15 Apr 2011 13:47:26 -0500

Hi,

I have a 3 deep project (as follows below). If I run "automake
--add-missing" it only adds the files for the current level, hence to
start out the project I need to hit each branch with the
"--add-missing" flag (and also run aclocal etc.). After this, from the
root, I can run "autoreconf", "./configure", and "make" just fine.

Is there a way to recursively run all of the initialization or some
other method to prevent me needing to leave the root to initialize the
whole project (hopefully w/o a shell script that requires me to
respecify the project layout)?

Thanks,
Trevor

  usp_exercises:

  usp_exercises/configure.ac:
AC_INIT([usp_exercises], [0.1])
AC_CONFIG_AUX_DIR([.])

AM_INIT_AUTOMAKE

AC_CONFIG_FILES([Makefile])
AC_CONFIG_SUBDIRS([ch02])
AC_OUTPUT

  usp_exercises/Makefile.am:
## Non GNU complient  project
AUTOMAKE_OPTIONS = foreign

## Project subdirectories
SUBDIRS = ch02


  usp_exerxises/ch02:

  usp_exercises/ch02/configure.ac:
AC_INIT([ch02], [0.1])
AC_CONFIG_AUX_DIR([.])

AM_INIT_AUTOMAKE

AC_CONFIG_FILES([Makefile])
AC_CONFIG_SUBDIRS([ex12 ex13])
AC_OUTPUT

  usp_exercises/ch02/Makefile.am:
## Non GNU complient  project
AUTOMAKE_OPTIONS = foreign

## Project subdirectories
SUBDIRS = ex12 ex13



  usp_exercises/ch02/ex12:

  usp_exercises/ch02/ex12/configure.ac:
AC_INIT([ex12], [0.1])

AC_CONFIG_AUX_DIR([.])

AM_INIT_AUTOMAKE

AC_PROG_CC

AC_CONFIG_FILES([Makefile])
AC_OUTPUT

  usp_exercises/ch02/ex12/Makefile.am:
## Non GNU complient  project
AUTOMAKE_OPTIONS = foreign

bin_PROGRAMS = doenv
doenv_SOURCES = doenv.c



reply via email to

[Prev in Thread] Current Thread [Next in Thread]