bug-make
[Top][All Lists]
Advanced

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

Re: $@ documentation


From: Paul D. Smith
Subject: Re: $@ documentation
Date: Sat, 12 Oct 2002 12:41:10 -0400

%% "Albert D. Cahalan" <address@hidden> writes:

  adc> It seems make doesn't set $@ where I want it set.
  adc> That wasn't real obvious. I still don't see it in
  adc> the documentation.

I could have sworn there was something there but I looked and also
didn't see it.  I'll add a note in the section on automatic variables.

The answer is, automatic variables are only defined within the scope of
the command script, they are not defined within the scope of the
prerequisites list.

This is the way make has always worked for 20+ years, and in fact it's
required by POSIX.

-- 
-------------------------------------------------------------------------------
 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]