FIProjetIHM2022/Makefile

30 lines
642 B
Makefile
Raw Normal View History

2022-11-15 18:57:04 +01:00
# Commandes
JAVAC = javac
JAVA = java
2022-11-15 17:38:45 +01:00
JAVADOC = javadoc
2022-11-15 18:57:04 +01:00
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
2022-11-15 17:38:45 +01:00
2022-11-15 18:57:04 +01:00
# Chemin
API = src/API
MNP = src/MNP
TEST = src/Test
BUILD = build
ALL = *.java
2022-11-15 17:38:45 +01:00
2022-11-15 18:57:04 +01:00
# Arguments
.PHONY: run clean docs
2022-11-15 17:38:45 +01:00
run:
2022-11-15 18:57:04 +01:00
$(JAVAC) $(OPTION_COMPILE) $(API)/$(ALL) $(MNP)/$(ALL) $(TEST)/$(ALL)
$(JAVA) $(OPTION_EXE) $(BUILD)/Test/TestTexteMNP
$(call docs)
2022-11-15 17:38:45 +01:00
clean:
2022-11-15 18:57:04 +01:00
$(RM) build/*
2022-11-15 17:38:45 +01:00
2022-11-15 18:57:04 +01:00
docs:
$(JAVADOC) $(OPTION_DOCS) $(API)/$(ALL) $(MNP)/$(ALL) $(TEST)/$(ALL)