SAE32_2022/Makefile

38 lines
837 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:28:42 +01:00
JAVAC_OPTIONS = -d build -cp build:$$CLASSPATH -implicit:none
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
EXCEPTION = ${SRCFULLPATH}/Exception
GRAPHICS = ${SRCFULLPATH}/Graphics
SETTINGS = ${SRCFULLPATH}/Settings
STORAGE = ${SRCFULLPATH}/Storage
MAIN = ${SRCFULLPATH}/Main.java
2023-01-05 18:43:32 +01:00
2023-01-16 00:28:42 +01:00
.PHONY: clean docs run
run:
mkdir build
mkdir -p $(src)/
2023-01-05 18:43:32 +01:00
clean:
2023-01-16 00:19:12 +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}*
${JAVADOC} ${OPTIONSDOCS} ${ALL}
# COMPILATION
2023-01-16 00:28:42 +01:00
${build}/Exception/JsonSyntaxException.class : ${EXCEPTION}/JsonSyntaxException.java
${JAVAC} ${JAVAC_OPTIONS} ${EXCEPTION}/JsonSyntaxException.java