From bf136d74a8e6d9474e3a55ba48502c88adb8e77e Mon Sep 17 00:00:00 2001 From: Aylane SEHL Date: Mon, 20 Oct 2025 20:53:22 +0200 Subject: [PATCH] Makefile Ajout du makefile --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bf64102 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +SRC=src +BUILD=build +LIB=lib +JAR=$(LIB)/mariadb-java-client-3.5.6.jar +MAIN=fr.iutfbleau.papillon.Main + +compile: + @echo "=== Compilation du projet ===" + @if not exist "$(BUILD)" mkdir "$(BUILD)" + javac -d $(BUILD) -classpath "$(JAR)" -sourcepath $(SRC) $(SRC)/fr/iutfbleau/papillon/Main.java + +run: + @echo "=== Exécution du programme ===" + java -classpath "$(BUILD);$(JAR)" $(MAIN) + +clean: + @echo "=== Nettoyage du dossier build ===" + @if exist "$(BUILD)" rmdir /s /q "$(BUILD)" + +rebuild: clean compile