Mercurial > hg > ristipolku
annotate Makefile @ 27:26adc2827983
More work on the internals.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 01 Feb 2011 20:38:19 +0200 |
parents | 3d4cc47df31a |
children | 736de7b28701 |
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 |
27 | 6 CLASSES=game/Piece.class game/PieceType.class \ |
7 game/Engine.class game/Interpolate.class \ | |
8 game/ResourceLoader.class game/Sound.class \ | |
9 game/SoundElement.class | |
1 | 10 |
11 # Utils | |
12 JAVAC=javac -g | |
13 APPLETVIEWER=appletviewer | |
14 | |
15 ### | |
16 ### Targets | |
17 ### | |
18 | 18 TARGETS=$(RUN) |
13 | 19 |
1 | 20 all: $(TARGETS) |
21 | |
26
3d4cc47df31a
Cleanups, fix piece rendering and rotation.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
22 game/%.class: game/%.java |
3d4cc47df31a
Cleanups, fix piece rendering and rotation.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
23 $(JAVAC) $< |
1 | 24 |
18 | 25 Ristipolku.class: Ristipolku.java $(CLASSES) |
1 | 26 $(JAVAC) $< |
9 | 27 |
1 | 28 |
29 run: $(RUN) | |
30 $(APPLETVIEWER) $(patsubst %.class,%.html,$<) | |
31 | |
32 | |
12 | 33 ### |
34 ### Package | |
35 ### | |
27 | 36 Ristipolku.jar: $(RUN) $(RESOURCES) |
37 jar cvfm $@ manifest.txt $+ game/*.class | |
13 | 38 |
12 | 39 |
14 | 40 upload: Ristipolku.jar |
12 | 41 @scp $+ ccr@tnsp.org:public_html/ristipolku/ |
18 | 42 $(RM) $< |
12 | 43 |
44 | |
45 ### | |
46 ### Cleanup | |
47 ### | |
1 | 48 clean: |
12 | 49 $(RM) $(TARGETS) *.class game/*.class |
1 | 50 |
51 | |
52 srcclean: clean | |
12 | 53 $(RM) *~ game/*~ graphics/*~ |
54 | |
1 | 55 # dummy |