FIProjetIHM2022/Makefile
pro.boooooo f236e39d7c $
2022-11-15 20:03:04 +01:00

30 lines
668 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/*
$(RM) docs/*
docs:
$(JAVADOC) $(OPTION_DOCS) $(API)/$(ALL) $(MNP)/$(ALL) $(TEST)/$(ALL)