help-make
[Top][All Lists]
Advanced

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

gmake: How to delete Pref3$1.class


From: Alexander Farber
Subject: gmake: How to delete Pref3$1.class
Date: Sun, 22 Feb 2004 15:19:36 +0000
User-agent: Mutt/1.5.5.1i

Hi,

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

I couldn't find a solution in the manual sofar, could
someone please give me a hint? Here's the Makefile:



SOURCES = Board.java Card.java Pref3.java
INNER   = Pref3$$1.class
CLASSES = $(SOURCES:%.java=%.class) $(INNER)
MEDIA   = cards2.gif

all: Pref3.jar Pref3.cab Pref3.zip

Pref3.jar: $(CLASSES) $(MEDIA)
        jar cf $@ $^

Pref3.cab: $(CLASSES) $(MEDIA)
        -wine cabarc.exe n $@ $^

Pref3.class $(INNER):
        javac -deprecation -J-Dfile.encoding=KOI8_R $^

%.class: %.java
        javac -deprecation -J-Dfile.encoding=KOI8_R $<

clean:
        rm -f $(CLASSES) tags log \
                Pref3.cab Pref3.zip Pref3.jar

Pref3.zip: $(CLASSES) $(MEDIA)
        zip -0 $@ $^

tags:
        ctags $(SOURCES)

.PHONY: all clean tags



Thank you
Alex




reply via email to

[Prev in Thread] Current Thread [Next in Thread]