help-make
[Top][All Lists]
Advanced

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

Re: function $(eval ...) in make 3.81 compared to 3.80


From: Paul Smith
Subject: Re: function $(eval ...) in make 3.81 compared to 3.80
Date: Wed, 27 Jun 2007 09:02:17 -0400

On Wed, 2007-06-27 at 12:13 +0200, Jacques Klein wrote:
> First, I added the $(eval $(warning ....)) stuf just to convince
> myseft about how $$ is "evaluated", and for that mater, like you say,
> the outer $(eval is just a "no-op", ( it's my way-of-doing to debug
> $(eval stufffff). i.e check for correctness of first and second
> expansion rounds).

The best way to debug eval is to REPLACE the eval with warning (or info,
in GNU make 3.81), not add it internally.  IOW, change this:

        $(eval ...some complex content...)

to this:

        $(info ...some complex content...)

will show you exactly what eval will evaluate.  Doing this:

        $(eval $(info ...some complex content...))

is not really that useful (although I guess it doesn't hurt).

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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