b14c1bddba
Signed-off-by: Malte Tammena <malte.tammena@gmx.de>
44 lines
926 B
Makefile
44 lines
926 B
Makefile
JAVA=java
|
|
JAVAC=javac
|
|
JAVADOC=javadoc
|
|
JAR=jar
|
|
|
|
JAVAC_OPTIONS=-Xlint:all
|
|
JAVADOC_OPTIONS=-Xdoclint:all -private -encoding UTF-8 -charset UTF-8 -docencoding UTF-8
|
|
|
|
BUILDS=builds
|
|
DOC=doc
|
|
CLASSPATH=src
|
|
LIBARIES=
|
|
CLASSES=\
|
|
src/game/Main.java \
|
|
src/game/Game.java \
|
|
src/game/GameHistory.java \
|
|
src/game/GameEntry.java \
|
|
src/game/PlayerObject.java \
|
|
src/player/Player.java \
|
|
src/player/Player1.java \
|
|
src/player/Player2.java
|
|
|
|
OBJECTS=$($(subst $(CLASSPATH),$(BUILDS),$(CLASSES)):.java=.class)
|
|
|
|
BUILDFILES=$(OBJECTS) $(FXMLS_BUILD)
|
|
|
|
MAIN=game.Main
|
|
|
|
|
|
all: $(CLASSES) $(FXMLS_BUILD)
|
|
$(JAVAC) $(JAVAC_OPTIONS) -cp $(CLASSPATH):$(LIBARIES) $(CLASSES) -d $(BUILDS)
|
|
|
|
run: $(CLASSES)
|
|
$(JAVA) -cp $(BUILDS):$(LIBARIES) $(MAIN)
|
|
|
|
doc: $(CLASSES)
|
|
$(JAVADOC) $(JAVADOC_OPTIONS) -cp $(CLASSPATH):$(LIBARIES) $(CLASSES) -d $(DOC)
|
|
|
|
jar: all
|
|
$(JAR) -cfe VierGewinnt.jar $(MAIN) -C $(BUILDS) .
|
|
|
|
clean:
|
|
rm -rf $(BUILDS)/* $(DOC)/* VierGewinnt.jar
|