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