help-make
[Top][All Lists]
Advanced

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

Re: want to clarify ways to "export" a make variable


From: Paul Smith
Subject: Re: want to clarify ways to "export" a make variable
Date: Mon, 20 Apr 2015 10:57:31 -0400

On Mon, 2015-04-20 at 09:01 -0400, Robert P. J. Day wrote:
>   $ VAR=value make ...

> as setting VAR on the command line, but i'm assuming that in the
> context of make, setting "on the command line" *specifically* means:
> 
>   $ make VAR=value ...
> 
> correct?

Yes.  The assignment in the first example isn't part of make's command
line: the _shell_ will interpret that assignment before it invokes make,
and make will never see that (it can't be determined through argv given
to the command, etc.)  A somewhat subtle point I guess.




reply via email to

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