35 lines
710 B
Makefile
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}
|