forked from menault/TD3_DEV51_Qualite_Algo
mot trouvé dans le terminal
This commit is contained in:
27
Makefile
Normal file
27
Makefile
Normal file
@@ -0,0 +1,27 @@
|
||||
# === Configuration ===
|
||||
SRC_DIR = src
|
||||
OUT_DIR = out
|
||||
PACKAGE = fr/iut/Projet
|
||||
MAIN_CLASS = fr.iut.Projet.Random_word
|
||||
|
||||
# === Règle principale ===
|
||||
all: compile run
|
||||
|
||||
# === Compilation ===
|
||||
compile:
|
||||
@echo "Compilation du projet..."
|
||||
@mkdir -p $(OUT_DIR)
|
||||
@javac -d $(OUT_DIR) $(SRC_DIR)/$(PACKAGE)/Random_word.java
|
||||
@cp $(SRC_DIR)/$(PACKAGE)/Word.txt $(OUT_DIR)/$(PACKAGE)/
|
||||
@echo "Compilation terminée."
|
||||
|
||||
# === Exécution ===
|
||||
run:
|
||||
@echo "Exécution du programme..."
|
||||
@java -cp $(OUT_DIR) $(MAIN_CLASS)
|
||||
|
||||
# === Nettoyage ===
|
||||
clean:
|
||||
@echo "Suppression des fichiers compilés..."
|
||||
@rm -rf $(OUT_DIR)
|
||||
@echo "Nettoyage terminé."
|
||||
Reference in New Issue
Block a user