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