Mercurial > hg > ristipolku
annotate Makefile @ 1:44f1e7b47fcf
Preliminary work ... puuh.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 28 Jan 2011 16:34:53 +0200 |
parents | |
children | 1785f66a7beb |
rev | line source |
---|---|
1 | 1 # Settings, directories |
2 RUN=gfxtest.class | |
3 TARGETS=$(RUN) | |
4 SUBDIR=game | |
5 | |
6 # Utils | |
7 JAVAC=javac -g | |
8 APPLETVIEWER=appletviewer | |
9 | |
10 ### | |
11 ### Targets | |
12 ### | |
13 all: $(TARGETS) | |
14 | |
15 gfxtest.class: game/Piece.class game/PieceType.class | |
16 | |
17 %.class: %.java | |
18 $(JAVAC) $< | |
19 | |
20 | |
21 run: $(RUN) | |
22 $(APPLETVIEWER) $(patsubst %.class,%.html,$<) | |
23 | |
24 | |
25 clean: | |
26 $(RM) $(TARGETS) *.class $(SUBDIR)/*.class | |
27 | |
28 | |
29 srcclean: clean | |
30 $(RM) *~ $(SUBDIR)/*~ | |
31 | |
32 | |
33 # dummy |