Files
SAE31_2025/Makefile
T

21 lines
501 B
Makefile
Raw Normal View History

2025-10-20 20:53:22 +02:00
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