%% "only4" <[EMAIL PROTECTED]> 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 <[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