help-make
[Top][All Lists]
Advanced

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

Re: the special var $@ works out of static patterns?


From: Paul D. Smith
Subject: Re: the special var $@ works out of static patterns?
Date: Sat, 8 Jan 2005 09:09:29 -0500

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

  o> This is legal as I know:
  o> name.foo: %.foo: %.baz         #I use % here
  o>      command %.bee > $@

You wouldn't use %.bee in the command line (unless you were trying to
use the actual literal filename '%.bee').

  o> And this?
  o> name.foo: name.baz      #no % used now
  o>     command name.bee > $@

Yes.  In GNU make, all the automatic variables are valid in all
different kinds of rules.

In some other versions of make, explicit rules don't have automatic
variables defined but this is not true of GNU make.

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