help-make
[Top][All Lists]
Advanced

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

Re: Can I change a variable inside a rule?


From: Paul Smith
Subject: Re: Can I change a variable inside a rule?
Date: Sun, 02 May 2010 10:14:55 -0400

On Sun, 2010-05-02 at 13:17 +0200, Stephan Beal wrote:
> On Sun, May 2, 2010 at 12:23 PM, Martin Mensch <address@hidden>
> wrote:
>         is there a way to change a variable inside a rule?

> Not a MAKE variable, no (a shell variable, yes, but only for the scope
> of that subshell). The manual:

Actually you can do this, by using $(eval ...) inside a recipe.

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