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