SAE32_2022/Makefile

35 lines
780 B
Makefile
Raw Normal View History

2023-01-05 18:43:32 +01:00
# COMMANDES
JAVA = java
JAVAC = javac
JAVADOC = javadoc
2023-01-16 00:19:12 +01:00
OPTIONSDOCS = -d docs -noqualifier all
2023-01-16 00:52:29 +01:00
JAVAC_OPTIONS = -d build -Xlint:unchecked
2023-01-05 18:43:32 +01:00
EXT = .java
# CHEMINS
2023-01-16 00:19:12 +01:00
SRC = src/fr/sae/JSonInspector
BUILD = build/fr/sae/JSonInspector
2023-01-05 18:43:32 +01:00
DOCS = docs/
2023-01-16 00:19:12 +01:00
CORE = Main
2023-01-05 18:43:32 +01:00
2023-01-16 00:19:12 +01:00
# CHEMINS RELATIF AU PROJET
2023-01-16 00:52:29 +01:00
EXCEPTION = ${SRC}/Exception/*.java
STORAGE = ${SRC}/Storage/*.java
GRAPHICS = ${SRC}/Graphics/*.java
SETTINGS = ${SRC}/Settings/*.java
MAIN = ${SRC}/Main.java
2023-01-05 18:43:32 +01:00
2023-01-16 00:28:42 +01:00
.PHONY: clean docs run
run:
2023-01-16 00:52:29 +01:00
make clean
mkdir build/ && mkdir docs/
${JAVAC} ${JAVAC_OPTIONS} ${SETTINGS} ${GRAPHICS} ${STORAGE} ${EXCEPTION} ${MAIN}
cd build && java fr.sae.JSonInspector.Main dfd && cd ..
2023-01-05 18:43:32 +01:00
clean:
2023-01-16 00:52:29 +01:00
rm -rf build && rm -rf docs
2023-01-05 18:43:32 +01:00
docs:
2023-01-16 00:19:12 +01:00
rm -rf ${BUILD}*
2023-01-16 00:52:29 +01:00
${JAVADOC} ${OPTIONSDOCS} ${ALL}