SAE32_2022/Makefile
pro.boooooo 10499a2c16 $
2023-01-16 01:49:14 +01:00

35 lines
773 B
Makefile

# COMMANDES
JAVA = java
JAVAC = javac
JAVADOC = javadoc
OPTIONSDOCS = -d docs -noqualifier all
JAVAC_OPTIONS = -d build -Xlint:unchecked
EXT = .java
# CHEMINS
SRC = src/fr/sae/JSonInspector
BUILD = build/fr/sae/JSonInspector
DOCS = docs/
CORE = Main
# CHEMINS RELATIF AU PROJET
EXCEPTION = ${SRC}/Exception/*.java
STORAGE = ${SRC}/Storage/*.java
GRAPHICS = ${SRC}/Graphics/*.java
SETTINGS = ${SRC}/Settings/*.java
MAIN = ${SRC}/*.java
.PHONY: clean docs run
run:
make clean
mkdir build/ && mkdir docs/
${JAVAC} ${JAVAC_OPTIONS} ${SETTINGS} ${GRAPHICS} ${STORAGE} ${EXCEPTION} ${MAIN}
cd build && java fr.sae.JSonInspector.Main && cd ..
clean:
rm -rf build && rm -rf docs
docs:
rm -rf ${BUILD}*
${JAVADOC} ${OPTIONSDOCS} ${ALL}