FIProjetIHM2022/Makefile
2022-12-02 12:02:11 +01:00

34 lines
840 B
Makefile

# Commandes
JAVAC = javac -encoding UTF-8
JAVA = java
JAR = $(JAVA) -jar
JAVADOC = javadoc
OPTION_DOCS = -d docs/
OPTION_COMPILE = -d build/ -cp "src/Test/libs/mariadb-connector.jar"
OPTION_DOCS = -d docs/ -cp "src/Test/libs/mariadb-connector.jar"
OPTION_EXE = -cp ".:Test/libs/mariadb-connector.jar" Test.TestTexteMNP
RM = rm -rf
# Chemin
API = src/API
MNP = src/MNP
TEST = src/Test
BUILD = build
ALL = *.java
# Arguments
.PHONY: run clean docs
run:
$(RM) build/*
$(RM) docs/*
$(JAVADOC) $(OPTION_DOCS) $(API)/$(ALL) $(MNP)/$(ALL) $(TEST)/$(ALL)
$(JAVAC) $(OPTION_COMPILE) $(API)/$(ALL) $(MNP)/$(ALL) $(TEST)/$(ALL)
cp -r src/Test/libs build/Test && cd build/ && $(JAVA) $(OPTION_EXE)
clean:
$(RM) build/*
$(RM) docs/*
docs:
$(JAVADOC) $(OPTION_DOCS) $(API)/$(ALL) $(MNP)/$(ALL) $(TEST)/$(ALL)