FIProjetIHM2022/Makefile

31 lines
688 B
Makefile
Raw Normal View History

2022-11-15 20:03:04 +01:00
# Commandes
JAVAC = javac
JAVA = java
2022-11-28 02:18:41 +01:00
JAR = $(JAVA) -jar
2022-11-15 20:03:04 +01:00
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:
$(JAVAC) $(OPTION_COMPILE) $(API)/$(ALL) $(MNP)/$(ALL) $(TEST)/$(ALL)
cd build/ && $(JAVA) $(OPTION_EXE)
clean:
$(RM) build/*
$(RM) docs/*
docs:
2022-11-15 18:57:04 +01:00
$(JAVADOC) $(OPTION_DOCS) $(API)/$(ALL) $(MNP)/$(ALL) $(TEST)/$(ALL)