%% "Robert P. J. Day" <[EMAIL PROTECTED]> writes:

  rpjd> based on testing, there are four ways i can set an env var that
  rpjd> will automatically be passed to a further make invocation:

  rpjd>   1) part of my linux shell environment
  rpjd>   2) $ VAR=value make ...

These first two are identical.

  rpjd>   3) $ make VAR=value ...
  rpjd>   4) in the makefile, "export VAR = value"

There are various options for exporting make variables from within a
makefile, but they're equivalent.

  rpjd> i realize there are some subtle differences in the above choices
  rpjd> but, basically, do they all fit the definition of an
  rpjd> "environment variable"?

They all cause any program invoked by make, even another instance of
make, to inherit the value of VAR through the environment, yes.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to