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: only4
Subject: Re: the special var $@ works out of static patterns?
Date: Mon, 10 Jan 2005 18:10:42 +0100

thank you

-- 
--
I use PGP/GPG. Ask for my key if interested.
-

"Paul D. Smith" <address@hidden> ha scritto nel messaggio
news:address@hidden
> %% "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]