Mercurial > hg > ristipolku
comparison Makefile @ 12:c4cd811813ef
Work on Makefile.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 30 Jan 2011 01:12:14 +0200 |
parents | a7751971c2a3 |
children | 562744de803c |
comparison
equal
deleted
inserted
replaced
11:b89ecc8d5557 | 12:c4cd811813ef |
---|---|
1 # Settings, directories | 1 # Settings, directories |
2 RUN=RistipolkuApplet.class | 2 RUN=Ristipolku.class |
3 TARGETS=$(RUN) | 3 CLASSES=game/Piece.class game/PieceType.class game/Engine.class game/Interpolate.class |
4 SUBDIR=game | 4 TARGETS=$(RUN) $(CLASSES) |
5 | 5 |
6 # Utils | 6 # Utils |
7 JAVAC=javac -g | 7 JAVAC=javac -g |
8 APPLETVIEWER=appletviewer | 8 APPLETVIEWER=appletviewer |
9 | 9 |
17 $(JAVAC) $< | 17 $(JAVAC) $< |
18 | 18 |
19 game/%.class: game/%.java | 19 game/%.class: game/%.java |
20 $(JAVAC) $< | 20 $(JAVAC) $< |
21 | 21 |
22 RistipolkuApplet.class: game/Piece.class game/PieceType.class game/Engine.class game/Interpolate.class | 22 |
23 Ristipolku.class: game/Piece.class game/PieceType.class game/Engine.class game/Interpolate.class | |
23 | 24 |
24 | 25 |
25 run: $(RUN) | 26 run: $(RUN) |
26 $(APPLETVIEWER) $(patsubst %.class,%.html,$<) | 27 $(APPLETVIEWER) $(patsubst %.class,%.html,$<) |
27 | 28 |
28 | 29 |
30 ### | |
31 ### Package | |
32 ### | |
33 Ristipolku.jar: $(RUN) $(CLASSES) | |
34 | |
35 | |
36 upload: index.html Ristipolku.jar | |
37 @scp $+ ccr@tnsp.org:public_html/ristipolku/ | |
38 | |
39 | |
40 ### | |
41 ### Cleanup | |
42 ### | |
29 clean: | 43 clean: |
30 $(RM) $(TARGETS) *.class $(SUBDIR)/*.class | 44 $(RM) $(TARGETS) *.class game/*.class |
31 | 45 |
32 | 46 |
33 srcclean: clean | 47 srcclean: clean |
34 $(RM) *~ $(SUBDIR)/*~ | 48 $(RM) *~ game/*~ graphics/*~ |
49 | |
35 | 50 |
36 | 51 |
37 # dummy | 52 # dummy |