Mercurial > hg > ristipolku
annotate Makefile @ 167:7bf508d363bd
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 02 Mar 2017 12:23:57 +0200 |
parents | 0303db4df28f |
children | 88b364dfd501 |
rev | line source |
---|---|
1 | 1 # Settings, directories |
12 | 2 RUN=Ristipolku.class |
165 | 3 JARFILE=Ristipolku.jar |
13 | 4 |
165 | 5 SRC=game |
6 RESOURCES=\ | |
7 graphics/*.png \ | |
8 graphics/*.jpg \ | |
9 graphics/font.ttf \ | |
10 sounds/*.wav | |
13 | 11 |
165 | 12 CLASSES=G.class \ |
13 Piece.class PieceType.class \ | |
14 Engine.class Interpolate.class \ | |
15 ResourceLoader.class \ | |
16 Sound.class SoundManager.class \ | |
17 IDMPoint.class IDMWidget.class \ | |
18 IDMButton.class IDMContainer.class \ | |
19 AnimatedPointElement.class | |
1 | 20 |
21 # Utils | |
165 | 22 JAVAC=javac |
23 JAVAC_FLAGS=-g -Xlint:unchecked | |
133
881deac2daf8
Some more work on scaling widgets, etc.
Matti Hamalainen <ccr@tnsp.org>
parents:
128
diff
changeset
|
24 APPLETVIEWER=aoss appletviewer |
1 | 25 |
165 | 26 |
1 | 27 ### |
28 ### Targets | |
29 ### | |
18 | 30 TARGETS=$(RUN) |
13 | 31 |
1 | 32 all: $(TARGETS) |
33 | |
165 | 34 $(SRC)/%.class: $(SRC)/%.java |
35 $(JAVAC) $(JAVAC_FLAGS) $< | |
1 | 36 |
165 | 37 Ristipolku.class: Ristipolku.java $(addprefix $(SRC)/,$(CLASSES)) |
38 $(JAVAC) $(JAVAC_FLAGS) $< | |
9 | 39 |
1 | 40 |
41 run: $(RUN) | |
42 $(APPLETVIEWER) $(patsubst %.class,%.html,$<) | |
43 | |
44 | |
12 | 45 ### |
46 ### Package | |
47 ### | |
165 | 48 $(JARFILE): $(RUN) $(RESOURCES) |
49 jar cvfm $@ manifest.txt $+ $(SRC)/*.class | |
13 | 50 |
12 | 51 |
165 | 52 upload: $(JARFILE) |
150 | 53 @scp $+ ccr@tnsp.org:tnsp/ristipolku/ |
18 | 54 $(RM) $< |
12 | 55 |
56 | |
57 ### | |
58 ### Cleanup | |
59 ### | |
1 | 60 clean: |
165 | 61 $(RM) $(TARGETS) *.class $(SRC)/*.class |
1 | 62 |
63 | |
64 srcclean: clean | |
162
e8eeac403e5f
Backed out changeset fb33d3796942
Matti Hamalainen <ccr@tnsp.org>
parents:
161
diff
changeset
|
65 $(RM) *~ game/*~ graphics/*~ |
12 | 66 |
1 | 67 # dummy |