[Top][All Lists]

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

Re: gmake: How to delete Pref3$1.class

From: Paul D. Smith
Subject: Re: gmake: How to delete Pref3$1.class
Date: Sun, 22 Feb 2004 10:12:24 -0500

%% address@hidden (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 <address@hidden>          Find some GNU make tips at:            
 "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]