Hi Baurzhan, * Baurzhan Ismagulov wrote on Tue, Jun 07, 2005 at 01:12:45PM CEST: > > Now I want to integrate several project into the build system. The > directory hierarchy looks like this: > > doc > drv > drv/d1 > drv/d2 > lib > lib/l1 > lib/l2 > src1 > src2 > > d1, d2, l1, l2, src1, src2 are existing projects with Makefile or > configure.ac / Makefile.am. I want to leave them as they are and write a > Makefile that would build them in the necessary order according to the > dependencies. > > So, how can I specify the build dependencies?
Put AC_CONFIG_SUBDIRS([d1 d2 l1 l2 src1 src2]) in toplevel configure.ac and SUBDIRS = d1 d2 l1 l2 src1 src2 in toplevel Makefile.am, in the order in which you want them configured resp. built. Read info Autoconf Subdirectories info Automake Subpackages and more generally info Automake Directories. Regards, Ralf