help-make
[Top][All Lists]
Advanced

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

Re: Dilemer using target-specific or pattern-specific variables


From: Paul Smith
Subject: Re: Dilemer using target-specific or pattern-specific variables
Date: Fri, 17 Oct 2008 10:30:54 -0400

On Fri, 2008-10-17 at 15:13 +0200, grischka wrote:
> Actually it hasn't to do with nature, rather the term "recursive
> variable" simply describes a limitation with gnu-make internals.

> Consider:
> 
>         V = A B C
>         V = $(V) D E F
> 
> It should be clear to almost everybody what this means, however the
> problem with gnu-make is that it does not store more than one
> assignment to the same variable name, so the second line will just
> erase it's knowledge about the first line.

What about:

        V = a b c $@
        V = c $(V) d
        V = q $(V) r x

etc.?  In order to make this work the way you suggest, you'd have to
store every assignment of every value to every variable, then every time
the value is expanded you'd basically have to walk through the entire
assignment history from the beginning.

And what about co-dependent variables?

        A = a b
        C = d e
        A = $(C) $(A)
        C = q r x $(A) $(C)

etc. etc.?

I think you are simplifying the problem space WAY too much.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.us
 "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]