FIprojetAgile2022Groupe3B/projetAgile/Makefile

179 lines
7.5 KiB
Makefile
Raw Normal View History

2022-11-17 09:31:19 +01:00
@JAVAC_OPT = -implicit:none -encoding UTF-8\
2022-11-10 13:38:05 +01:00
-d build -classpath "build:res/mariadb-client.jar" -sourcepath src
PACKAGE = fr.iutfbleau.projetAgile
PACKAGE_PATH = fr/iutfbleau/projetAgile
#------- Variables Puissance 4 ------
View = build/$(PACKAGE_PATH)/Puissance4/View/Pion.class \
build/$(PACKAGE_PATH)/Puissance4/View/Grille.class \
build/$(PACKAGE_PATH)/Puissance4/View/Puissance4Panel.class \
Utils = build/$(PACKAGE_PATH)/Puissance4/Utils/Constants.class \
build/$(PACKAGE_PATH)/Puissance4/Utils/GameStatus.class
Events = build/$(PACKAGE_PATH)/Puissance4/Event/GridChangedListener.class \
build/$(PACKAGE_PATH)/Puissance4/Event/GridEvent.class \
2022-11-10 11:35:05 +01:00
build/$(PACKAGE_PATH)/Puissance4/Event/StatusEvent.class \
build/$(PACKAGE_PATH)/Puissance4/Event/PlayerEvent.class
Model = build/$(PACKAGE_PATH)/Puissance4/Model/GrilleModel.class
2022-10-13 15:51:42 +02:00
Controller = build/$(PACKAGE_PATH)/Puissance4/Controller/GrilleMouseListener.class \
build/$(PACKAGE_PATH)/Puissance4/Controller/ModelEventListener.class \
build/$(PACKAGE_PATH)/Puissance4/Controller/ResetGame.class
2022-10-21 13:40:34 +02:00
#BUT PAR DEFAUT
2022-11-10 14:24:12 +01:00
ArgileGames.jar : build \
build/$(PACKAGE_PATH)/Main.class
2022-10-22 11:19:51 +02:00
@echo "Creating jar..."
2022-11-10 11:37:46 +01:00
@jar cfme ArgileGames.jar Manifest.txt $(PACKAGE_PATH).Main res/ -C build fr
2022-10-22 11:19:51 +02:00
@echo "Finished"
2022-10-20 14:30:39 +02:00
2022-10-13 16:09:07 +02:00
#------- Events ------
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
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
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
build/$(PACKAGE_PATH)/Puissance4/Event/AbstractGridInitiater.class : src/$(PACKAGE_PATH)/Puissance4/Event/AbstractGridInitiater.java \
$(Events)
2022-10-22 11:19:51 +02:00
@javac $(@JAVAC_OPT) $<
2022-10-13 15:51:42 +02:00
2022-11-10 11:35:05 +01:00
build/$(PACKAGE_PATH)/Puissance4/Event/PlayerEvent.class : src/$(PACKAGE_PATH)/Puissance4/Event/PlayerEvent.java
@javac $(@JAVAC_OPT) $<
2022-10-13 16:09:07 +02:00
#------- Controleur ------
2022-11-11 18:31:08 +01:00
build/$(PACKAGE_PATH)/Menu/Controller/ObservateurAccueil.class : src/$(PACKAGE_PATH)/Menu/Controller/ObservateurAccueil.java
2022-10-24 16:11:09 +02:00
@javac $(@JAVAC_OPT) $<
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
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
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) $<
build/$(PACKAGE_PATH)/Puissance4/Controller/ModelEventListener.class : src/$(PACKAGE_PATH)/Puissance4/Controller/ModelEventListener.java \
build/$(PACKAGE_PATH)/Puissance4/Event/GridChangedListener.class \
build/$(PACKAGE_PATH)/Puissance4/View/Grille.class \
$(Event)
2022-10-22 11:19:51 +02:00
@javac $(@JAVAC_OPT) $<
2022-10-17 18:28:55 +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
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 ------
build/$(PACKAGE_PATH)/Puissance4/Model/GrilleModel.class : src/$(PACKAGE_PATH)/Puissance4/Model/GrilleModel.java \
build/$(PACKAGE_PATH)/Puissance4/Event/AbstractGridInitiater.class \
$(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 ------
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) $<
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-13 16:09:07 +02:00
#------- Vue ------
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) $<
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) $<
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
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) $<
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) $<
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-24 20:32:57 +02:00
build/$(PACKAGE_PATH)/Menu/Controller/ObservateurFenetre.class \
2022-11-11 20:01:23 +01:00
build/$(PACKAGE_PATH)/Menu/Controller/ObservateurAccueil.class \
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
build/$(PACKAGE_PATH)/Main.class : src/$(PACKAGE_PATH)/Main.java \
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 \
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
2022-11-10 11:37:46 +01:00
@javac -implicit:none -d build -classpath "build:res/mariadb-client.jar" -sourcepath src $<
2022-10-20 14:30:39 +02:00
2022-11-10 14:24:12 +01:00
2022-11-06 10:39:23 +01:00
build/$(PACKAGE_PATH)/Jeu.class : src/$(PACKAGE_PATH)/Jeu.java
@javac $(@JAVAC_OPT) $<
2022-11-10 14:24:12 +01:00
build :
@mkdir build
@echo "Creating Folder"
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 -cp build -sourcepath src -subpackages fr.iutfbleau.projetAgile
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
@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/*