[Top][All Lists]

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

Re: Environment varles

From: Paul D. Smith
Subject: Re: Environment varles
Date: Mon, 29 Oct 2001 17:50:43 -0500

%% Yuri Polyakov <address@hidden> writes:

  yp> The question is : is there a way to change the Environment
  yp> Variable in MAKE?  The meanning is not to overwrite the value for
  yp> make only but effect by this change the value of this variable in
  yp> the Environment..

I don't quite know what you mean, but there's no good way to change an
environment variable without also changing the make variable of the same

Your only alternative is to do something like:

          MYVAR=somevalue <command>

That is, set it in the commandline itself.

If you want to set it for all subprocesses of make, then you must set
the variable in the makefile (changing the value of that variable in
make) and export it:

  MYVAR = somevalue
  export MYVAR

 Paul D. Smith <address@hidden>          Find some GNU make tips at:            
 "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]