Mercurial > hg > ristipolku
view Makefile @ 13:562744de803c
Work.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 30 Jan 2011 01:49:43 +0200 |
parents | c4cd811813ef |
children | ae717d7d05ae |
line wrap: on
line source
# Settings, directories RUN=Ristipolku.class RESOURCES=graphics/board.png CLASSES=game/Piece.class game/PieceType.class game/Engine.class game/Interpolate.class # Utils JAVAC=javac -g APPLETVIEWER=appletviewer ### ### Targets ### TARGETS=$(RUN) $(CLASSES) all: $(TARGETS) %.class: %.java $(JAVAC) $< game/%.class: game/%.java $(JAVAC) $< Ristipolku.class: game/Piece.class game/PieceType.class game/Engine.class game/Interpolate.class run: $(RUN) $(APPLETVIEWER) $(patsubst %.class,%.html,$<) ### ### Package ### Ristipolku.jar: $(RUN) $(CLASSES) $(RESOURCES) jar cvf $@ $+ upload: index.html Ristipolku.jar @scp $+ ccr@tnsp.org:public_html/ristipolku/ ### ### Cleanup ### clean: $(RM) $(TARGETS) *.class game/*.class srcclean: clean $(RM) *~ game/*~ graphics/*~ # dummy