FIProjetIHM2022/Makefile
pro.boooooo dd958e5067 $
2022-11-15 19:46:10 +01:00

29 lines
627 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 "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/*
docs:
$(JAVADOC) $(OPTION_DOCS) $(API)/$(ALL) $(MNP)/$(ALL) $(TEST)/$(ALL)