This commit is contained in:
Bilou
2022-12-07 16:36:22 +01:00
parent e988e3f7fe
commit 79ca7e9c91
35 changed files with 23151 additions and 12325 deletions

View File

@@ -7,6 +7,9 @@ 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
OPTION_EXE_A = -cp ".:Test/libs/mariadb-connector.jar" Test.MainAdmin
OPTION_EXE_P = -cp ".:Test/libs/mariadb-connector.jar" Test.MainProf
OPTION_EXE_S = -cp ".:Test/libs/mariadb-connector.jar" Test.MainStudent
RM = rm -rf
# Chemin
@@ -25,6 +28,24 @@ run:
$(JAVAC) $(OPTION_COMPILE) $(API)/$(ALL) $(MNP)/$(ALL) $(TEST)/$(ALL)
cp -r src/Test/libs build/Test && cd build/ && $(JAVA) $(OPTION_EXE)
admin:
$(RM) build/*
$(RM) docs/*
$(JAVAC) $(OPTION_COMPILE) $(API)/$(ALL) $(MNP)/$(ALL) $(TEST)/$(ALL)
cp -r src/Test/libs build/Test && cd build/ && $(JAVA) $(OPTION_EXE_A)
student:
$(RM) build/*
$(RM) docs/*
$(JAVAC) $(OPTION_COMPILE) $(API)/$(ALL) $(MNP)/$(ALL) $(TEST)/$(ALL)
cp -r src/Test/libs build/Test && cd build/ && $(JAVA) $(OPTION_EXE_S)
prof:
$(RM) build/*
$(RM) docs/*
$(JAVAC) $(OPTION_COMPILE) $(API)/$(ALL) $(MNP)/$(ALL) $(TEST)/$(ALL)
cp -r src/Test/libs build/Test && cd build/ && $(JAVA) $(OPTION_EXE_P)
clean:
$(RM) build/*
$(RM) docs/*