help-make
[Top][All Lists]
Advanced

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

Re: how to define a set of targets for a recursive structure?


From: Noel Yap
Subject: Re: how to define a set of targets for a recursive structure?
Date: Tue, 16 Dec 2003 17:06:07 -0500

"Robert P. J. Day" wrote:
> 
> On Tue, 16 Dec 2003, Noel Yap wrote:
> 
> > This sounds about right for a recursive make structure.
> >
> > Alternatively, you can go for a non-recursive make (I call it a
> > recursive makefile) structure.  See
> > http://aegis.sourceforge.net/auug97.pdf.
> 
> as i take a closer look at this, just out of curiosity, do you
> accept the ideas in this article, or are you just supplying it
> for an alternative point of view?

I fully accept, have used, and completely recommend the ideas in this article.

> more on this later after i dig into it.  thanks.

No problem.  Have fun with it.

I would suggest to get your makefile up and running before trying to generalize 
it and make it easier to maintain.  You'll get a better idea of how to evolve 
the makefiles and what functions you'll need to create to help support it.

Tackling simultaneously the ideas of recursive makefiles and generality is 
extremely difficult unless you're very adept at Prolog-like (ie declarative) 
and LISP-like (ie functional) programming.  IME, "gmake -npqr" and $(warning) 
come in extremely handy
when debugging the makefiles and $(eval) comes in very handy in implementing 
some of the functionality that make this kind of structure easier to build.

HTH,
Noel
-- 
NOTICE: If received in error, please destroy and notify sender.  Sender does 
not waive confidentiality or privilege, and use is prohibited.




reply via email to

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