FIProjetIHM2022/Makefile
pro.boooooo 818035d374 $
2022-11-15 17:38:45 +01:00

35 lines
710 B
Makefile

## Commandes
JAVA = javac
EXEC = java
OPTIONS = -cp "src/Test/libs/mariadb-connector.jar"
OPTIONS2 = -cp "src/Test/libs/mariadb-connector.jar;"
BUILD_EX = -d build/
BUILD_DOCS = -d docs/
JAVADOC = javadoc
DEL = rm -rf
CREATEFILE = mkdir
## Chemin
BUILD = build/
COMPILE = build/Test/TestTexteMNP
API = src/API/*.java
MNP = src/MNP/*.java
TEST = src/Test/*.java
DOCS = docs/
MAIN = TestTexteMNP
.PHONY: run clean doc
## Compile
run:
${JAVA} ${BUILD_EX} ${OPTIONS} ${API} ${MNP} ${TEST} -Xlint:deprecation
cp -r src/Test/libs build/Test
cd build/Test
${EXEC} ${OPTIONS2} ${MAIN} -Xlint:deprecation
clean:
${DEL} ${BUILD}*
${DEL} ${DOCS}*
doc:
${JAVADOC} ${BUILD_DOCS} ${OPTIONS} ${API} ${MNP} ${TEST}