[Rake-devel] make like variables?

Ittay Dror ittay.dror at gmail.com
Sat Sep 6 03:21:22 EDT 2008

in make, if in my Makefile I have
FOO = 1
FOO += 2
    echo $(FOO)

then running:
 > make
1 2
 > make FOO=3

That is, if passed in the command line, any assignments to FOO are 
ignored. In Makefile, this can be changed by using the 'override' 
method. It is not that important, just an idiom that people coming from 
Make expect. Obviously, Rakefile being Ruby this sort of behavior can be 


Jim Weirich wrote:
> On Sep 4, 2008, at 7:39 AM, Ittay Dror wrote:
>> Is there a way to get make-like behavior for variables? Meaning, that 
>> when passed in the command line, all settings in the rakefile are 
>> ignored.
> Can you give an example of what you want?

Ittay Dror <ittay.dror at gmail.com>

More information about the Rake-devel mailing list