2022-10-22 11:19:51 +02:00
|
|
|
@JAVAC_OPT = -implicit:none \
|
2022-10-13 10:20:58 +02:00
|
|
|
-d build -classpath build -sourcepath src
|
|
|
|
PACKAGE = fr.iutfbleau.projetAgile
|
|
|
|
PACKAGE_PATH = fr/iutfbleau/projetAgile
|
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
#------- Variables Puissance 4 ------
|
2022-10-13 10:20:58 +02:00
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
View = build/$(PACKAGE_PATH)/Puissance4/View/Pion.class \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/View/Grille.class \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/View/Puissance4Panel.class \
|
2022-10-13 10:20:58 +02:00
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
Utils = build/$(PACKAGE_PATH)/Puissance4/Utils/Constants.class \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Utils/GameStatus.class
|
2022-10-13 10:20:58 +02:00
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
Events = build/$(PACKAGE_PATH)/Puissance4/Event/GridChangedListener.class \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Event/GridEvent.class \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Event/StatusEvent.class
|
2022-10-13 18:44:49 +02:00
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
Model = build/$(PACKAGE_PATH)/Puissance4/Model/GrilleModel.class
|
2022-10-13 15:51:42 +02:00
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
Controller = build/$(PACKAGE_PATH)/Puissance4/Controller/GrilleMouseListener.class \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Controller/ModelEventListener.class \
|
2022-10-25 20:50:04 +02:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Controller/ResetGame.class
|
2022-10-21 13:40:34 +02:00
|
|
|
|
|
|
|
#BUT PAR DEFAUT
|
2022-10-22 11:19:51 +02:00
|
|
|
ArgileGames.jar : build/$(PACKAGE_PATH)/Main.class
|
|
|
|
@echo "Creating jar..."
|
|
|
|
@jar cfe ArgileGames.jar $(PACKAGE_PATH).Main -C build fr -C res images
|
|
|
|
@echo "Finished"
|
2022-10-20 14:30:39 +02:00
|
|
|
|
2022-10-13 16:09:07 +02:00
|
|
|
#------- Events ------
|
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Event/GridEvent.class : src/$(PACKAGE_PATH)/Puissance4/Event/GridEvent.java
|
2022-10-22 11:19:51 +02:00
|
|
|
@javac $(@JAVAC_OPT) $<
|
2022-10-13 15:51:42 +02:00
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Event/StatusEvent.class : src/$(PACKAGE_PATH)/Puissance4/Event/StatusEvent.java \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Utils/GameStatus.class
|
2022-10-22 11:19:51 +02:00
|
|
|
@javac $(@JAVAC_OPT) $<
|
2022-10-21 22:20:48 +02:00
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Event/GridChangedListener.class : src/$(PACKAGE_PATH)/Puissance4/Event/GridChangedListener.java \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Event/GridEvent.class
|
2022-10-22 11:19:51 +02:00
|
|
|
@javac $(@JAVAC_OPT) $<
|
2022-10-13 15:51:42 +02:00
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Event/AbstractGridInitiater.class : src/$(PACKAGE_PATH)/Puissance4/Event/AbstractGridInitiater.java \
|
2022-10-17 20:42:13 +02:00
|
|
|
$(Events)
|
2022-10-22 11:19:51 +02:00
|
|
|
@javac $(@JAVAC_OPT) $<
|
2022-10-13 15:51:42 +02:00
|
|
|
|
2022-10-13 16:09:07 +02:00
|
|
|
#------- Controleur ------
|
|
|
|
|
2022-10-24 16:11:09 +02:00
|
|
|
build/$(PACKAGE_PATH)/Menu/Controleur/ObservateurAccueil.class : src/$(PACKAGE_PATH)/Menu/Controller/ObservateurAccueil.java
|
|
|
|
@javac $(@JAVAC_OPT) $<
|
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Controller/ResetGame.class : src/$(PACKAGE_PATH)/Puissance4/Controller/ResetGame.java
|
2022-10-22 11:19:51 +02:00
|
|
|
@javac $(@JAVAC_OPT) $<
|
2022-10-18 13:52:42 +02:00
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Controller/GrilleMouseListener.class : src/$(PACKAGE_PATH)/Puissance4/Controller/GrilleMouseListener.java
|
2022-10-22 11:19:51 +02:00
|
|
|
@javac $(@JAVAC_OPT) $<
|
2022-10-13 13:40:53 +02:00
|
|
|
|
2022-10-30 13:38:15 +01:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Controller/ColorChooserListener.class : src/$(PACKAGE_PATH)/Puissance4/Controller/ColorChooserListener.java
|
|
|
|
@javac $(@JAVAC_OPT) $<
|
|
|
|
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Controller/ColorActionListener.class : src/$(PACKAGE_PATH)/Puissance4/Controller/ColorActionListener.java
|
|
|
|
@javac $(@JAVAC_OPT) $<
|
|
|
|
|
2022-10-25 13:53:01 +02:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Controller/ModelEventListener.class : src/$(PACKAGE_PATH)/Puissance4/Controller/ModelEventListener.java \
|
2022-10-22 10:50:01 +02:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Event/GridChangedListener.class \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/View/Grille.class \
|
2022-10-17 20:42:13 +02:00
|
|
|
$(Event)
|
2022-10-17 21:08:10 +02:00
|
|
|
|
2022-10-22 11:19:51 +02:00
|
|
|
@javac $(@JAVAC_OPT) $<
|
2022-10-17 18:28:55 +02:00
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
build/$(PACKAGE_PATH)/Menu/Controller/ObservateurMenuSouris.class : src/$(PACKAGE_PATH)/Menu/Controller/ObservateurMenuSouris.java \
|
|
|
|
build/$(PACKAGE_PATH)/Menu/View/BoutonsMenu.class
|
2022-10-22 11:19:51 +02:00
|
|
|
@javac $(@JAVAC_OPT) $<
|
2022-10-19 22:12:11 +02:00
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Controller/Puissance4Controller.class : src/$(PACKAGE_PATH)/Puissance4/Controller/Puissance4Controller.java \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Model/GrilleModel.class \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/View/Grille.class \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Utils/GameStatus.class \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/View/Puissance4Panel.class \
|
2022-10-20 09:52:13 +02:00
|
|
|
$(Controller)
|
2022-10-22 11:19:51 +02:00
|
|
|
@javac $(@JAVAC_OPT) $<
|
2022-10-20 09:52:13 +02:00
|
|
|
|
2022-10-24 16:11:09 +02:00
|
|
|
build/$(PACKAGE_PATH)/Menu/Controller/ObservateurFenetre.class : src/$(PACKAGE_PATH)/Menu/Controller/ObservateurFenetre.java
|
|
|
|
@javac $(@JAVAC_OPT) $<
|
|
|
|
|
2022-10-13 16:09:07 +02:00
|
|
|
#------- Modele ------
|
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Model/GrilleModel.class : src/$(PACKAGE_PATH)/Puissance4/Model/GrilleModel.java \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Event/AbstractGridInitiater.class \
|
2022-10-17 20:42:13 +02:00
|
|
|
$(Utils)
|
2022-10-22 11:19:51 +02:00
|
|
|
@javac $(@JAVAC_OPT) $<
|
2022-10-13 13:40:53 +02:00
|
|
|
|
2022-10-13 16:09:07 +02:00
|
|
|
#------- Utils ------
|
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Utils/Constants.class : src/$(PACKAGE_PATH)/Puissance4/Utils/Constants.java
|
2022-10-22 11:19:51 +02:00
|
|
|
@javac $(@JAVAC_OPT) $<
|
2022-10-13 10:20:58 +02:00
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Utils/GameStatus.class : src/$(PACKAGE_PATH)/Puissance4/Utils/GameStatus.java
|
2022-10-22 11:19:51 +02:00
|
|
|
@javac $(@JAVAC_OPT) $<
|
2022-10-17 20:42:13 +02:00
|
|
|
|
2022-10-13 16:09:07 +02:00
|
|
|
#------- Vue ------
|
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/View/Pion.class : src/$(PACKAGE_PATH)/Puissance4/View/Pion.java \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Utils/Constants.class
|
2022-10-22 11:19:51 +02:00
|
|
|
@javac $(@JAVAC_OPT) $<
|
2022-10-13 10:20:58 +02:00
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/View/Grille.class : src/$(PACKAGE_PATH)/Puissance4/View/Grille.java \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/View/Pion.class \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Utils/Constants.class
|
2022-10-22 11:19:51 +02:00
|
|
|
@javac $(@JAVAC_OPT) $<
|
2022-10-13 10:20:58 +02:00
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/View/Puissance4Panel.class : src/$(PACKAGE_PATH)/Puissance4/View/Puissance4Panel.java \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/View/Pion.class \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/View/Grille.class \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Utils/Constants.class
|
2022-10-22 11:19:51 +02:00
|
|
|
@javac $(@JAVAC_OPT) $<
|
2022-10-19 22:12:11 +02:00
|
|
|
|
2022-10-30 13:38:15 +01:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/View/ColorChooserDialog.class : src/$(PACKAGE_PATH)/Puissance4/View/ColorChooserDialog.java \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Controller/ColorActionListener.class \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Controller/ColorChooserListener.class
|
|
|
|
@javac $(@JAVAC_OPT) $<
|
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
build/$(PACKAGE_PATH)/Menu/View/BoutonsMenu.class : src/$(PACKAGE_PATH)/Menu/View/BoutonsMenu.java
|
2022-10-22 11:19:51 +02:00
|
|
|
@javac $(@JAVAC_OPT) $<
|
2022-10-13 10:20:58 +02:00
|
|
|
|
2022-10-22 10:50:01 +02:00
|
|
|
build/$(PACKAGE_PATH)/Menu/View/Menu.class : src/$(PACKAGE_PATH)/Menu/View/Menu.java \
|
|
|
|
build/$(PACKAGE_PATH)/Menu/Controller/ObservateurMenuSouris.class \
|
2022-10-24 16:11:09 +02:00
|
|
|
build/$(PACKAGE_PATH)/Menu/View/BoutonsMenu.class \
|
2022-10-25 22:22:59 +02:00
|
|
|
build/$(PACKAGE_PATH)/Menu/Controleur/ObservateurAccueil.class \
|
2022-10-24 20:32:57 +02:00
|
|
|
build/$(PACKAGE_PATH)/Menu/Controller/ObservateurFenetre.class \
|
2022-11-06 10:39:23 +01:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/LancementPuissance4.class
|
2022-10-22 11:19:51 +02:00
|
|
|
@javac $(@JAVAC_OPT) $<
|
2022-10-20 09:52:13 +02:00
|
|
|
|
2022-10-13 13:40:53 +02:00
|
|
|
|
2022-10-20 14:25:27 +02:00
|
|
|
build/$(PACKAGE_PATH)/Main.class : src/$(PACKAGE_PATH)/Main.java \
|
2022-10-25 13:53:01 +02:00
|
|
|
build/$(PACKAGE_PATH)/Menu/View/Menu.class
|
2022-10-22 11:19:51 +02:00
|
|
|
@echo "Classes compiled"
|
|
|
|
@javac $(@JAVAC_OPT) $<
|
2022-10-13 13:40:53 +02:00
|
|
|
|
2022-11-06 10:39:23 +01:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/LancementPuissance4.class : src/$(PACKAGE_PATH)/Puissance4/LancementPuissance4.java \
|
|
|
|
build/$(PACKAGE_PATH)/Jeu.class \
|
2022-10-24 20:32:57 +02:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Controller/Puissance4Controller.class \
|
2022-10-30 13:38:15 +01:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/View/ColorChooserDialog.class \
|
2022-10-24 20:32:57 +02:00
|
|
|
build/$(PACKAGE_PATH)/Puissance4/View/Grille.class \
|
|
|
|
build/$(PACKAGE_PATH)/Puissance4/Model/GrilleModel.class
|
|
|
|
@javac $(@JAVAC_OPT) $<
|
2022-10-20 14:30:39 +02:00
|
|
|
|
2022-11-06 10:39:23 +01:00
|
|
|
build/$(PACKAGE_PATH)/Jeu.class : src/$(PACKAGE_PATH)/Jeu.java
|
|
|
|
@javac $(@JAVAC_OPT) $<
|
|
|
|
|
2022-10-20 14:30:39 +02:00
|
|
|
# BUT FACTICES:
|
2022-10-21 13:40:34 +02:00
|
|
|
.PHONY: clear doc run
|
2022-10-20 14:30:39 +02:00
|
|
|
|
2022-10-20 11:32:49 +02:00
|
|
|
doc :
|
2022-10-22 11:19:51 +02:00
|
|
|
@echo "Creating documentation..."
|
|
|
|
@javadoc -quiet -d doc src/$(PACKAGE_PATH)/Puissance4/View/*.java \
|
2022-10-22 10:50:01 +02:00
|
|
|
src/$(PACKAGE_PATH)/Menu/View/*.java \
|
|
|
|
src/$(PACKAGE_PATH)/Puissance4/Controller/*.java \
|
|
|
|
src/$(PACKAGE_PATH)/Menu/Controller/*.java \
|
|
|
|
src/$(PACKAGE_PATH)/Puissance4/Utils/*.java \
|
|
|
|
src/$(PACKAGE_PATH)/Puissance4/Model/*.java \
|
|
|
|
src/$(PACKAGE_PATH)/Puissance4/Event/*.java
|
2022-10-22 11:19:51 +02:00
|
|
|
@echo "Finished"
|
2022-10-20 11:32:49 +02:00
|
|
|
|
2022-10-21 13:40:34 +02:00
|
|
|
run: ArgileGames.jar
|
2022-10-22 11:19:51 +02:00
|
|
|
@java -jar ArgileGames.jar
|
2022-10-17 13:42:19 +02:00
|
|
|
|
2022-11-06 10:39:23 +01:00
|
|
|
clean :
|
2022-10-22 11:19:51 +02:00
|
|
|
@rm -rf build/*
|
2022-10-19 22:12:11 +02:00
|
|
|
|