JAVAC_OPT = -implicit:none \ -d build -classpath build -sourcepath src PACKAGE = fr.iutfbleau.projetAgile PACKAGE_PATH = fr/iutfbleau/projetAgile JAR_OPTION = cvfe projetAgile.jar $(PACKAGE).main.Main -C build fr -C res #------- Dossiers ------ View = build/$(PACKAGE_PATH)/View/Pion.class \ build/$(PACKAGE_PATH)/View/Grille.class \ build/$(PACKAGE_PATH)/View/Puissance4Panel.class \ build/$(PACKAGE_PATH)/View/TestGrille.class \ build/$(PACKAGE_PATH)/View/BoutonsMenu.class \ build/$(PACKAGE_PATH)/View/Menu.class Utils = build/$(PACKAGE_PATH)/Utils/Constants.class \ build/$(PACKAGE_PATH)/Utils/GameStatus.class Events = build/$(PACKAGE_PATH)/Event/GridChangedListener.class \ build/$(PACKAGE_PATH)/Event/GridEvent.class \ build/$(PACKAGE_PATH)/Event/PlayerEvent.class Model = build/$(PACKAGE_PATH)/Model/GrilleModel.class Controller = build/$(PACKAGE_PATH)/Controller/GrilleMouseListener.class \ build/$(PACKAGE_PATH)/Controller/ModelEventListener.class \ #------- Events ------ build/$(PACKAGE_PATH)/Event/PlayerEvent.class : src/$(PACKAGE_PATH)/Event/PlayerEvent.java javac $(JAVAC_OPT) $< build/$(PACKAGE_PATH)/Event/GridEvent.class : src/$(PACKAGE_PATH)/Event/GridEvent.java javac $(JAVAC_OPT) $< build/$(PACKAGE_PATH)/Event/GridChangedListener.class : src/$(PACKAGE_PATH)/Event/GridChangedListener.java \ build/$(PACKAGE_PATH)/Event/GridEvent.class \ build/$(PACKAGE_PATH)/Event/PlayerEvent.class javac $(JAVAC_OPT) $< build/$(PACKAGE_PATH)/Event/AbstractGridInitiater.class : src/$(PACKAGE_PATH)/Event/AbstractGridInitiater.java \ $(Events) javac $(JAVAC_OPT) $< #------- Controleur ------ build/$(PACKAGE_PATH)/Controller/ResetGame.class : src/$(PACKAGE_PATH)/Controller/ResetGame.java \ build/$(PACKAGE_PATH)/Puissance4Controller.class javac $(JAVAC_OPT) $< build/$(PACKAGE_PATH)/Controller/GrilleMouseListener.class : src/$(PACKAGE_PATH)/Controller/GrilleMouseListener.java javac $(JAVAC_OPT) $< build/$(PACKAGE_PATH)/Controller/ModelEventListener.class : src/$(PACKAGE_PATH)/Controller/ModelEventListener.java \ build/$(PACKAGE_PATH)/Event/GridChangedListener.class \ build/$(PACKAGE_PATH)/View/Grille.class \ $(Event) javac $(JAVAC_OPT) $< build/$(PACKAGE_PATH)/Controller/ObservateurMenuSouris.class : src/$(PACKAGE_PATH)/Controller/ObservateurMenuSouris.java \ build/$(PACKAGE_PATH)/View/BoutonsMenu.class javac $(JAVAC_OPT) $< build/$(PACKAGE_PATH)/Puissance4Controller.class : src/$(PACKAGE_PATH)/Controller/Puissance4Controller.java \ build/$(PACKAGE_PATH)/Model/GrilleModel.class \ build/$(PACKAGE_PATH)/View/Grille.class \ build/$(PACKAGE_PATH)/Utils/GameStatus.class \ build/$(PACKAGE_PATH)/View/Puissance4Panel.class \ $(Controller) javac $(JAVAC_OPT) $< #------- Modele ------ build/$(PACKAGE_PATH)/Model/GrilleModel.class : src/$(PACKAGE_PATH)/Model/GrilleModel.java \ build/$(PACKAGE_PATH)/Event/AbstractGridInitiater.class \ $(Utils) javac $(JAVAC_OPT) $< #------- Utils ------ build/$(PACKAGE_PATH)/Utils/Constants.class : src/$(PACKAGE_PATH)/Utils/Constants.java javac $(JAVAC_OPT) $< build/$(PACKAGE_PATH)/Utils/GameStatus.class : src/$(PACKAGE_PATH)/Utils/GameStatus.java javac $(JAVAC_OPT) $< #------- Vue ------ build/$(PACKAGE_PATH)/View/Pion.class : src/$(PACKAGE_PATH)/View/Pion.java \ build/$(PACKAGE_PATH)/Utils/Constants.class javac $(JAVAC_OPT) $< build/$(PACKAGE_PATH)/View/Grille.class : src/$(PACKAGE_PATH)/View/Grille.java \ build/$(PACKAGE_PATH)/View/Pion.class \ build/$(PACKAGE_PATH)/Utils/Constants.class javac $(JAVAC_OPT) $< build/$(PACKAGE_PATH)/View/Puissance4Panel.class : src/$(PACKAGE_PATH)/View/Puissance4Panel.java \ build/$(PACKAGE_PATH)/View/Pion.class \ build/$(PACKAGE_PATH)/View/Grille.class \ build/$(PACKAGE_PATH)/Controller/ResetGame.class javac $(JAVAC_OPT) $< build/$(PACKAGE_PATH)/View/BoutonsMenu.class : src/$(PACKAGE_PATH)/View/BoutonsMenu.java javac $(JAVAC_OPT) $< build/$(PACKAGE_PATH)/View/Menu.class : src/$(PACKAGE_PATH)/View/Menu.java \ build/$(PACKAGE_PATH)/View/BoutonsMenu.class \ build/$(PACKAGE_PATH)/Controller/ObservateurMenuSouris.class javac $(JAVAC_OPT) $< build/$(PACKAGE_PATH)/Main.class : src/$(PACKAGE_PATH)/Main.java javac $(JAVAC_OPT) $< puissance4 : build/$(PACKAGE_PATH)/Main.class \ build/$(PACKAGE_PATH)/Puissance4Controller.class \ $(Model) java -cp build $(PACKAGE_PATH).Main clear : rm -rf build/* .PHONY: clear