automake
[Top][All Lists]
Advanced

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

Re: cyclic dependancy


From: Ralf Wildenhues
Subject: Re: cyclic dependancy
Date: Mon, 27 Oct 2008 22:15:04 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hello Neel,

* Neel Basu wrote on Mon, Oct 27, 2008 at 01:19:45PM CET:
> 
> On Sunday 26 Oct 2008 11:41:26 pm Ralf Wildenhues wrote:
> 
> >   $(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.
> 
> The solution you've mentioned is general or standard way to solve the 
> problem. 
> or My application logic is wrong or non-standard ??

Well, it would be better if you reordered your files and directories in
a way so that they can be totally ordered, and no targets from makefiles
early in the list depend upon targets later in the list.  It looks like
it will be possible in your case, if you move libcgixx.la and its
sources to a separate directory and arrange for that to be visited
before the other directories.  Alternatively, you can think about
nonrecursive makefile structure; see here for details:
<http://www.gnu.org/software/automake/manual/html_node/Alternative.html>

Cheers,
Ralf






reply via email to

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