%% [EMAIL PROTECTED] (Alexander Farber) writes:

  af> I have a smaller Makefile and one of the files there
  af> is named "Pref3$1.class". I have troubles deleting it 
  af> with "gmake clean", probably because the shell tries 
  af> to expand the "$1" in its name.

  af> I couldn't find a solution in the manual sofar, could
  af> someone please give me a hint?

Look in the section "Basics of Variable References":

> To substitute a variable's value, write a dollar sign followed by the
> name of the variable in parentheses or braces: either `$(foo)' or
> `${foo}' is a valid reference to the variable `foo'.  This special
> significance of `$' is why you must write `$$' to have the effect of a
> single dollar sign in a file name or command.

-- 
-------------------------------------------------------------------------------
 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://mail.gnu.org/mailman/listinfo/help-make

Reply via email to