2023-01-05 18:43:32 +01:00
|
|
|
# COMMANDES
|
|
|
|
JAVA = java
|
|
|
|
JAVAC = javac
|
2023-01-16 01:56:46 +01:00
|
|
|
JAR = java -jar
|
2023-01-05 18:43:32 +01:00
|
|
|
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-16 01:56:46 +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:56:46 +01:00
|
|
|
make docs
|
|
|
|
${JAR} cvfe JSonInspector.jar fr.sae.JSonInspector.Main -C build fr
|
2023-01-16 01:49:14 +01:00
|
|
|
cd build && java fr.sae.JSonInspector.Main && 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 01:56:46 +01:00
|
|
|
rm -rf ${DOCS}/*
|
|
|
|
${JAVADOC} ${OPTIONSDOCS} ${SETTINGS} ${GRAPHICS} ${STORAGE} ${EXCEPTION} ${MAIN}
|