bug-make
[Top][All Lists]
Advanced

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

Re: need access to Makefile path


From: Noel Yap
Subject: Re: need access to Makefile path
Date: Tue, 18 May 2004 14:40:12 -0400
User-agent: Mozilla Thunderbird 0.5 (Windows/20040212)

Although it's reminiscent of DOS, I like your use of '%' in private variable 
names.

There's a lot of meat in this.  It'll take some time for me to chew on it and 
digest.

One thing I can say right now is, if you had an include-makefile function, the 
below would become:

        $(call include-makefile,foo.make)       # frame-enter and frame-leave 
are implicit

Thanks,
Noel

Boris Kolpackov wrote:

Noel Yap <address@hidden> writes:



How are you going to guarantee that the names of the variables are unique?

You could use variable framing ;-)

What's variable framing?


You can say

$(call frame-enter)

include foo.make

$(call frame-leave)

and any changes to variables inside the frame will not affect anything
outside the frame.

See http://kolpackov.net/projects/build/ if you are interested in details.

-boris




reply via email to

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