automake
[Top][All Lists]
Advanced

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

Re: back to directory dependencies


From: Baurzhan Ismagulov
Subject: Re: back to directory dependencies
Date: Tue, 28 Jun 2005 16:59:36 +0200
User-agent: Mutt/1.5.6+20040907i

Hello Ralf,

[This thread was started on Jun 7. I couldn't find the list archive --
http://directory.fsf.org/GNU/automake.html doesn't mention any, and
http://sources.redhat.com/ml/automake/2005-06/ says there were no
messages sent this month. Which archive do you use?]

On Tue, Jun 07, 2005 at 04:16:26PM +0200, Ralf Wildenhues wrote:
> > 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.

I've tried to implement that. I've put the following line in my topmost
configure.ac:

AC_CONFIG_SUBDIRS(lib/l1 src1)

configure runs configure in lib/l1 and src1. However, src1/configure
tries to link against lib/l1/libl1.a and fails since it can't find it.
So I need to have lib/l1 built before I can configure src1.

The only solution that I can think of is to use configure-stamp,
make-stamp and introduce custom dependencies between them.

What do you think?

Thanks in advance,
Baurzhan.




reply via email to

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