help-make
[Top][All Lists]
Advanced

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

Re: Passing makefile macros back using the $(shell)


From: Paul D. Smith
Subject: Re: Passing makefile macros back using the $(shell)
Date: Mon, 14 Mar 2005 16:50:49 -0500

%% "address@hidden" <address@hidden> writes:

  nc> export${space}NUMOSVERSION

  nc> Is there some reason why the generated export line would be
  nc> invalid?  I would have thought the macro would need to be expanded
  nc> before processing the line for syntax.

No.  _Before_ the line can be expanded it must be recognized (variable
setting, rule definition, etc.), so make knows what kind of expansion to
perform.  Not all lines in a makefile are expanded the same way.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          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




reply via email to

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