* Neel Basu wrote on Sun, Oct 26, 2008 at 06:29:07PM CET:
> This is my current version of cgixx/cgi++/jsutil/Makefile.am
> INCLUDES = -I$(top_srcdir)/cgi++
> METASOURCES = AUTO
> noinst_HEADERS = NOT-MENTIONED
> lib_LTLIBRARIES = libcgixx-jsutil.la
> libcgixx_jsutil_la_SOURCES = NOT-MENTIONED
> libcgixx_jsutil_la_LIBADD = $(top_builddir)/cgi++/libcgixx.la
> libcgixx_jsutil_la_LDFLAGS = -static
> 
> The error shown is
> 
> make[3]: *** No rule to make target `../../cgi++/libcgixx.la', needed by 
> `libcgixx-jsutil.la'.
> make[2]: *** No rule to make target `../cgi++/jsutil/libcgixx-jsutil.la', 
> needed by `cgixx'.

Ah, so you do have a loop, at least in a sense that you cannot put
your directories in a total ordering for recursion.  Didn't realize
that before.  One thing you can do is, put stuff like

  $(top_builddir)/cgi++/libcgixx.la:
        cd $(top_builddir)/cgi++ && $(MAKE) $(AM_MAKEFLAGS) libcgixx.la

in the Makefile.am files that need it.  If the cgi++ directory has
BUILT_SOURCES, then they need to be built first, though.

BTW, if you keep top-posting, I will ignore further mails from you.
<http://www.caliburn.nl/topposting.html>

Cheers,
Ralf


Reply via email to