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
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to