SAE32_2022/Makefile

35 lines
805 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
2023-01-16 01:16:08 +01:00
MAIN = ${SRC}/*.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}
2023-01-16 01:16:08 +01:00
cd build && java fr.sae.JSonInspector.Main /home/bilal-linux/toFormat.json && 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}