Ajout du makefile
This commit is contained in:
2025-10-20 20:53:22 +02:00
parent 55af93deac
commit bf136d74a8
+20
View File
@@ -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