automake
[Top][All Lists]
Advanced

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

Re: Depend on a local library in a different source directory


From: Ralf Wildenhues
Subject: Re: Depend on a local library in a different source directory
Date: Sun, 12 Oct 2008 21:24:58 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hello Sylvain, Thomas,

Please don't top-post, and please keep the list in Cc:, thanks.

* Sylvain Beucler wrote on Sun, Oct 12, 2008 at 08:44:45PM CEST:
> 
> Is there also a way to automatically (re)build '../mylib.la' when I
> issue 'make' in 'lib/python/'?

put this in lib/python/Makefile.am:

../mylib.la:
        cd .. && $(MAKE) $(AM_MAKEFLAGS) $@

This will build the library if it doesn't exist.  If you also want to
rebuild it if it exists but is outdated, then you either need to specify
dependencies in the above rule, too, or make it phony.  Of course the
latter is inefficient, as it will cause an extra make invocation in any
case.

The real solution is to use nonrecursive make, if feasible for you.

Hope that helps.

Cheers,
Ralf




reply via email to

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