41 lines
793 B
Makefile
41 lines
793 B
Makefile
|
# COMMANDES
|
||
|
JAVA = java
|
||
|
JAVAC = javac
|
||
|
JAVADOC = javadoc
|
||
|
OPTIONSDOCS = -d docs
|
||
|
OPTIONS = -d build -Xlint:unchecked -Xlint:deprecation
|
||
|
EXT = .java
|
||
|
|
||
|
# CHEMINS
|
||
|
SRC = src/
|
||
|
BUILD = build/
|
||
|
DOCS = docs/
|
||
|
CORE = Core
|
||
|
GraphicsPACKAGE = Graphics/
|
||
|
ConsolePACKAGE = Console/
|
||
|
|
||
|
# POUR ALLER PLUS VITE (Core, package:Console, )
|
||
|
ALL = $(SRC)*$(EXT) $(SRC)$(ConsolePACKAGE)*$(EXT) $(SRC)$(GraphicsPACKAGE)*$(EXT)
|
||
|
|
||
|
# LE FICHIER JSON
|
||
|
JSON = toFormat.json
|
||
|
|
||
|
.PHONY: console graphics clean docs
|
||
|
|
||
|
console:
|
||
|
make clean
|
||
|
mkdir build && mkdir docs
|
||
|
$(JAVAC) $(OPTIONS) $(ALL)
|
||
|
cd build && $(JAVA) $(CORE) $(JSON) && cd ..
|
||
|
|
||
|
graphics:
|
||
|
make clean
|
||
|
mkdir build && mkdir docs
|
||
|
$(JAVAC) $(OPTIONS) $(ALL)
|
||
|
cd build && $(JAVA) $(CORE) && cd ..
|
||
|
|
||
|
clean:
|
||
|
rm -rf $(BUILD) && rm -rf $(DOCS)
|
||
|
|
||
|
docs:
|
||
|
$(JAVADOC) $(OPTIONSDOCS) $(ALL)
|