FIProjetIHM2022/Makefile

29 lines
627 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;"
2022-11-15 19:46:10 +01:00
OPTION_EXE = -cp "Test/libs/mariadb-connector.jar;." Test.TestTexteMNP
2022-11-15 18:57:04 +01:00
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)
2022-11-15 19:46:10 +01:00
cd build/ && $(JAVA) $(OPTION_EXE)
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)