Mercurial > hg > ristipolku
comparison Makefile @ 13:562744de803c
Work.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 30 Jan 2011 01:49:43 +0200 |
parents | c4cd811813ef |
children | ae717d7d05ae |
comparison
equal
deleted
inserted
replaced
12:c4cd811813ef | 13:562744de803c |
---|---|
1 # Settings, directories | 1 # Settings, directories |
2 RUN=Ristipolku.class | 2 RUN=Ristipolku.class |
3 | |
4 RESOURCES=graphics/board.png | |
5 | |
3 CLASSES=game/Piece.class game/PieceType.class game/Engine.class game/Interpolate.class | 6 CLASSES=game/Piece.class game/PieceType.class game/Engine.class game/Interpolate.class |
4 TARGETS=$(RUN) $(CLASSES) | |
5 | 7 |
6 # Utils | 8 # Utils |
7 JAVAC=javac -g | 9 JAVAC=javac -g |
8 APPLETVIEWER=appletviewer | 10 APPLETVIEWER=appletviewer |
9 | 11 |
10 ### | 12 ### |
11 ### Targets | 13 ### Targets |
12 ### | 14 ### |
15 TARGETS=$(RUN) $(CLASSES) | |
16 | |
13 all: $(TARGETS) | 17 all: $(TARGETS) |
14 | 18 |
15 | 19 |
16 %.class: %.java | 20 %.class: %.java |
17 $(JAVAC) $< | 21 $(JAVAC) $< |
28 | 32 |
29 | 33 |
30 ### | 34 ### |
31 ### Package | 35 ### Package |
32 ### | 36 ### |
33 Ristipolku.jar: $(RUN) $(CLASSES) | 37 Ristipolku.jar: $(RUN) $(CLASSES) $(RESOURCES) |
34 | 38 jar cvf $@ $+ |
39 | |
35 | 40 |
36 upload: index.html Ristipolku.jar | 41 upload: index.html Ristipolku.jar |
37 @scp $+ ccr@tnsp.org:public_html/ristipolku/ | 42 @scp $+ ccr@tnsp.org:public_html/ristipolku/ |
38 | 43 |
39 | 44 |
45 | 50 |
46 | 51 |
47 srcclean: clean | 52 srcclean: clean |
48 $(RM) *~ game/*~ graphics/*~ | 53 $(RM) *~ game/*~ graphics/*~ |
49 | 54 |
50 | |
51 | |
52 # dummy | 55 # dummy |