un-Windowsed Makefile

This commit is contained in:
Maurizio Bruetsch 2017-10-23 13:28:12 +02:00
parent fa8ce856f1
commit 281b7ce321

View file

@ -9,21 +9,21 @@ JAVADOC_OPTIONS=-Xdoclint:all -private -encoding UTF-8 -charset UTF-8 -docencodi
BUILDS=builds BUILDS=builds
DOC=doc DOC=doc
CLASSPATH=src CLASSPATH=src
LIBARIES=\ LIBRARIES=\
lib/jansi-1.16.jar lib/jansi-1.16.jar
CLASSES=\ CLASSES=\
src\game\Main.java \ src/game/Main.java \
src\game\Game.java \ src/game/Game.java \
src\game\GameHistory.java \ src/game/GameHistory.java \
src\game\GameEntry.java \ src/game/GameEntry.java \
src\game\PlayerObject.java \ src/game/PlayerObject.java \
src\player\Player.java \ src/player/Player.java \
src\player\Human.java \ src/player/Human.java \
src\player\malte\MalteAI.java \ src/player/malte/MalteAI.java \
src\player\malte\Pattern.java \ src/player/malte/Pattern.java \
src\player\malte\PatternGenerator.java \ src/player/malte/PatternGenerator.java \
src\player\malte\Item.java \ src/player/malte/Item.java \
src\player\maurizio\MaurizioAI.java src/player/maurizio/MaurizioAI.java
OBJECTS=$($(subst $(CLASSPATH),$(BUILDS),$(CLASSES)):.java=.class) OBJECTS=$($(subst $(CLASSPATH),$(BUILDS),$(CLASSES)):.java=.class)
@ -37,13 +37,13 @@ P2=
all: $(CLASSES) $(FXMLS_BUILD) all: $(CLASSES) $(FXMLS_BUILD)
$(JAVAC) $(JAVAC_OPTIONS) -cp $(CLASSPATH) $(CLASSES) -d $(BUILDS) $(JAVAC) $(JAVAC_OPTIONS) -cp $(CLASSPATH):$(LIBRARIES) $(CLASSES) -d $(BUILDS)
run: $(CLASSES) run: $(CLASSES)
$(JAVA) -cp $(BUILDS) $(MAIN) $(P1) $(P2) $(JAVA) -cp $(BUILDS):$(LIBRARIES) $(MAIN) $(P1) $(P2)
simulate: $(CLASSES) simulate: $(CLASSES)
$(JAVA) -cp $(BUILDS) $(MAIN) $(N) $(JAVA) -cp $(BUILDS):$(LIBRARIES) $(MAIN) $(N)
doc: $(CLASSES) doc: $(CLASSES)
$(JAVADOC) $(JAVADOC_OPTIONS) -cp $(CLASSPATH):$(LIBARIES) $(CLASSES) -d $(DOC) $(JAVADOC) $(JAVADOC_OPTIONS) -cp $(CLASSPATH):$(LIBARIES) $(CLASSES) -d $(DOC)