Mercurial > hg > ristipolku
annotate Makefile @ 123:f496867f511e
Board background changed.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 24 Nov 2011 15:28:15 +0200 |
parents | 18316f0638ff |
children | 584a226318b0 |
rev | line source |
---|---|
1 | 1 # Settings, directories |
12 | 2 RUN=Ristipolku.class |
13 | 3 |
25 | 4 RESOURCES=graphics/*.png graphics/*.jpg graphics/font.ttf sounds/*.wav |
13 | 5 |
75 | 6 CLASSES=game/G.class \ |
7 game/Piece.class game/PieceType.class \ | |
27 | 8 game/Engine.class game/Interpolate.class \ |
94 | 9 game/ResourceLoader.class \ |
10 game/Sound.class game/SoundManager.class \ | |
51 | 11 game/IDMPoint.class game/IDMWidget.class \ |
12 game/IDMButton.class game/IDMContainer.class | |
1 | 13 |
14 # Utils | |
15 JAVAC=javac -g | |
16 APPLETVIEWER=appletviewer | |
17 | |
18 ### | |
19 ### Targets | |
20 ### | |
18 | 21 TARGETS=$(RUN) |
13 | 22 |
1 | 23 all: $(TARGETS) |
24 | |
26
3d4cc47df31a
Cleanups, fix piece rendering and rotation.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
25 game/%.class: game/%.java |
3d4cc47df31a
Cleanups, fix piece rendering and rotation.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
26 $(JAVAC) $< |
1 | 27 |
18 | 28 Ristipolku.class: Ristipolku.java $(CLASSES) |
1 | 29 $(JAVAC) $< |
9 | 30 |
1 | 31 |
32 run: $(RUN) | |
33 $(APPLETVIEWER) $(patsubst %.class,%.html,$<) | |
34 | |
35 | |
12 | 36 ### |
37 ### Package | |
38 ### | |
27 | 39 Ristipolku.jar: $(RUN) $(RESOURCES) |
40 jar cvfm $@ manifest.txt $+ game/*.class | |
13 | 41 |
12 | 42 |
14 | 43 upload: Ristipolku.jar |
12 | 44 @scp $+ ccr@tnsp.org:public_html/ristipolku/ |
18 | 45 $(RM) $< |
12 | 46 |
47 | |
48 ### | |
49 ### Cleanup | |
50 ### | |
1 | 51 clean: |
12 | 52 $(RM) $(TARGETS) *.class game/*.class |
1 | 53 |
54 | |
55 srcclean: clean | |
12 | 56 $(RM) *~ game/*~ graphics/*~ |
57 | |
1 | 58 # dummy |