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