|
From: | Peter Johansson |
Subject: | Re: library dependency |
Date: | Wed, 04 Mar 2009 00:19:30 -0500 |
User-agent: | Thunderbird 2.0.0.19 (Macintosh/20081209) |
Hello John, John Wohlbier wrote:
mv -f .deps/lib1src.Tpo .deps/lib1src.Plo make: *** No rule to make target `../lib2/liblib2.la', needed by `liblib1.la'. Stop. Does automake allow for automatically building lib2 when make is typed within lib1? If so, how is it done? If not, is this an unreasonable thing to expect the dependencies to handle?
I see two solutions to this. 1) Move directory lib2 to be a SUBDIR of lib1 2) or add the following in lib2/Makefile.am FORCE: $(top_builddir)/lib1/liblib1.la: FORCE (cd $(top_builddir)/lib1 && $(MAKE) $(AM_MAKEFLAGS) liblib1.la )If it is possible I would prefer 1) because 2) make the build slightly slower.
Cheers, Peter
[Prev in Thread] | Current Thread | [Next in Thread] |