-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (34 loc) · 719 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# jdk path
JDK =
# java runtime path
JAVA = $(JDK)java
# java compiler path
JAVAC = $(JDK)javac
# javadoc path
JAVADOC = $(JDK)javadoc
REMOVE = del
REMDIR = del
REMOPT = /f /s
# gnu make tool
MAKE = make
# encoding mode
ENCODING = UTF8
build :
make clean
make game/Random.class
make game/character/player/Player.class
make game/ConsEsc.class
make game/Console.class
make game/Game.class
run :
make build
$(JAVA) game.Game
javadoc :
$(JAVADOC) -encoding $(ENCODING) -d ..\docs -use -version -nohelp -charset $(ENCODING) -sourcetab 4 -docencoding $(ENCODING) \
game game.character.player
%.class : %.java
$(JAVAC) -encoding $(ENCODING) $*.java
clean :
cd game
$(REMOVE) $(REMOPT) *.class
cd ..