Mercurial > hg > ristipolku
annotate Makefile @ 133:881deac2daf8
Some more work on scaling widgets, etc.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 24 Nov 2011 21:50:41 +0200 |
parents | 584a226318b0 |
children | b0c05b8b59ca |
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 \ |
128
584a226318b0
Add AnimatedPointElement class to the build.
Matti Hamalainen <ccr@tnsp.org>
parents:
94
diff
changeset
|
12 game/IDMButton.class game/IDMContainer.class \ |
584a226318b0
Add AnimatedPointElement class to the build.
Matti Hamalainen <ccr@tnsp.org>
parents:
94
diff
changeset
|
13 game/AnimatedPointElement.class |
1 | 14 |
15 # Utils | |
133
881deac2daf8
Some more work on scaling widgets, etc.
Matti Hamalainen <ccr@tnsp.org>
parents:
128
diff
changeset
|
16 JAVAC=javac -g -Xlint:unchecked |
881deac2daf8
Some more work on scaling widgets, etc.
Matti Hamalainen <ccr@tnsp.org>
parents:
128
diff
changeset
|
17 APPLETVIEWER=aoss appletviewer |
1 | 18 |
19 ### | |
20 ### Targets | |
21 ### | |
18 | 22 TARGETS=$(RUN) |
13 | 23 |
1 | 24 all: $(TARGETS) |
25 | |
26
3d4cc47df31a
Cleanups, fix piece rendering and rotation.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
26 game/%.class: game/%.java |
3d4cc47df31a
Cleanups, fix piece rendering and rotation.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
27 $(JAVAC) $< |
1 | 28 |
18 | 29 Ristipolku.class: Ristipolku.java $(CLASSES) |
1 | 30 $(JAVAC) $< |
9 | 31 |
1 | 32 |
33 run: $(RUN) | |
34 $(APPLETVIEWER) $(patsubst %.class,%.html,$<) | |
35 | |
36 | |
12 | 37 ### |
38 ### Package | |
39 ### | |
27 | 40 Ristipolku.jar: $(RUN) $(RESOURCES) |
41 jar cvfm $@ manifest.txt $+ game/*.class | |
13 | 42 |
12 | 43 |
14 | 44 upload: Ristipolku.jar |
12 | 45 @scp $+ ccr@tnsp.org:public_html/ristipolku/ |
18 | 46 $(RM) $< |
12 | 47 |
48 | |
49 ### | |
50 ### Cleanup | |
51 ### | |
1 | 52 clean: |
12 | 53 $(RM) $(TARGETS) *.class game/*.class |
1 | 54 |
55 | |
56 srcclean: clean | |
12 | 57 $(RM) *~ game/*~ graphics/*~ |
58 | |
1 | 59 # dummy |