[Nix-dev] iproute nix-expression

Eelco Dolstra eelco at cs.uu.nl
Wed Jun 13 22:47:21 CEST 2007


Hi,

Michael Raskin wrote:

>> But rather than doing a substitution on the Makefile, you can also do
>> this by
>> passing a parameter to make, like
>>
>> preBuild = "
>>   makeFlagsArray=(SBINDIR=$out/sbin CONFDIR=$out/etc ...)
>> ";
>>
>> This is less sensitive to changes in the Makefile between releases.
> I am not sure what will happen first - 'make' allowing assignment to VAR
> not matching ^VAR= or 'make' that proceeds overrides in a different
> fashion. 

The command-line variables override definitions in the Makefile, and they're
even passed on in recursive invocations of Make.

-- 
Eelco Dolstra | http://www.cs.uu.nl/~eelco



More information about the nix-dev mailing list