From 48a376006e52c521eaa8c507fa84af1a02ae7651 Mon Sep 17 00:00:00 2001 From: Moncef STITI <moncef.stiti@etu.u-pec.fr> Date: Wed, 12 Mar 2025 16:41:47 +0100 Subject: [PATCH] =?UTF-8?q?Simplification=20du=20Makefile=20en=20suppriman?= =?UTF-8?q?t=20les=20messages=20d'=C3=A9cho=20inutiles=20et=20en=20ajustan?= =?UTF-8?q?t=20les=20d=C3=A9pendances=20pour=20la=20cr=C3=A9ation=20du=20f?= =?UTF-8?q?ichier=20JAR.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index dcee5ab..7a941dd 100644 --- a/Makefile +++ b/Makefile @@ -34,10 +34,8 @@ all: init $(MAIN_CLASS) $(JARNAME) deploy-tests # Initialiser les répertoires nécessaires init: - @echo "Création des répertoires nécessaires..." @mkdir -p $(BUILDDIR) @mkdir -p $(BUILDDIR)fr/monlouyan/bakefile/ - @echo "Répertoires créés." $(MAIN_CLASS): $(MAIN_SRC) $(BAKECLI_CLASS) $(BAKEENGINE_CLASS) @echo "Compilation de $(MAIN_SRC)..." @@ -71,8 +69,8 @@ $(BAKECLI_CLASS): $(BAKECLI_SRC) @echo "Compilation de $(BAKECLI_SRC)..." @javac -cp $(CLASSP) -d $(BUILDDIR) $(BAKECLI_SRC) -Xlint:unchecked -Xlint:deprecation -sourcepath src -# Création du fichier JAR (dépend de phase4 pour s'assurer que tout est compilé) -$(JARNAME): phase4 +# Création du fichier JAR (on s'assure que tout est compilé) +$(JARNAME): $(MAIN_CLASS) $(RULE_CLASS) $(TIMESTAMPMANAGER_CLASS) $(DEPENDENCYRESOLVER_CLASS) $(COMMANDEXECUTOR_CLASS) $(BAKEFILEPARSER_CLASS) @echo "Création du fichier JAR..." @jar cfm $(JARNAME) $(MANIFESTPATH) -C $(BUILDDIR) fr/monlouyan/bakefile @echo "Fichier JAR créé : $(JARNAME)" @@ -89,9 +87,7 @@ see-javadoc: javadoc # Déploiement du JAR dans les répertoires de test deploy-tests: $(JARNAME) - @echo "Déploiement du JAR dans les répertoires de test..." @find $(TESTDIR) -type d -name 'bake' -exec cp $(JARNAME) {} \; - @echo "Déploiement terminé." # Nettoyage des fichiers générés clean: @@ -103,4 +99,4 @@ clean: @echo "Nettoyage terminé." # Cibles spéciales -.PHONY: all init phase1 stubs phase3 phase4 javadoc deploy-tests clean \ No newline at end of file +.PHONY: all init javadoc deploy-tests clean \ No newline at end of file