FIProjetIHM2022/Makefile
pro.boooooo 2b66bcdf4c $
2022-11-15 18:57:04 +01:00

30 lines
642 B
Makefile

# Commandes
JAVAC = javac
JAVA = java
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 "build/Test/libs/mariadb-connector.jar;"
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)
$(JAVA) $(OPTION_EXE) $(BUILD)/Test/TestTexteMNP
$(call docs)
clean:
$(RM) build/*
docs:
$(JAVADOC) $(OPTION_DOCS) $(API)/$(ALL) $(MNP)/$(ALL) $(TEST)/$(ALL)