FIprojetAgile2022Groupe3B/projetAgile/Makefile

89 lines
4.1 KiB
Makefile
Raw Normal View History

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
2022-10-13 16:09:07 +02:00
#------- Dossiers ------
2022-10-13 10:43:46 +02:00
View : build/$(PACKAGE_PATH)/View/Pion.class \
build/$(PACKAGE_PATH)/View/Grille.class
2022-10-13 13:40:53 +02:00
Utils : build/$(PACKAGE_PATH)/Utils/Constants.class
Events : build/$(PACKAGE_PATH)/Controller/EventListener/GridChangedListener.class \
build/$(PACKAGE_PATH)/Controller/EventListener/GridEvent.class \
build/$(PACKAGE_PATH)/Controller/EventListener/PlayerEvent.class
Model : build/$(PACKAGE_PATH)/Model/GrilleModel.class
2022-10-13 15:51:42 +02:00
2022-10-13 16:09:07 +02:00
#------- Events ------
build/$(PACKAGE_PATH)/Controller/EventListener/PlayerEvent.class : src/$(PACKAGE_PATH)/Controller/EventListener/PlayerEvent.java
javac $(JAVAC_OPT) src/$(PACKAGE_PATH)/Controller/EventListener/PlayerEvent.java
build/$(PACKAGE_PATH)/Controller/EventListener/GridEvent.class : src/$(PACKAGE_PATH)/Controller/EventListener/GridEvent.java
javac $(JAVAC_OPT) src/$(PACKAGE_PATH)/Controller/EventListener/GridEvent.java
2022-10-13 15:51:42 +02:00
build/$(PACKAGE_PATH)/Controller/EventListener/GridChangedListener.class : src/$(PACKAGE_PATH)/Controller/EventListener/GridChangedListener.java \
build/$(PACKAGE_PATH)/Controller/EventListener/GridEvent.class \
build/$(PACKAGE_PATH)/Controller/EventListener/PlayerEvent.class
javac $(JAVAC_OPT) src/$(PACKAGE_PATH)/Controller/EventListener/GridChangedListener.java
2022-10-13 15:51:42 +02:00
build/$(PACKAGE_PATH)/Controller/EventListener/AbstractGridInitiater.class : src/$(PACKAGE_PATH)/Controller/EventListener/AbstractGridInitiater.java \
build/$(PACKAGE_PATH)/Controller/EventListener/GridChangedListener.class \
build/$(PACKAGE_PATH)/Controller/EventListener/GridEvent.class \
build/$(PACKAGE_PATH)/Controller/EventListener/PlayerEvent.class
javac $(JAVAC_OPT) src/$(PACKAGE_PATH)/Controller/EventListener/AbstractGridInitiater.java
2022-10-13 15:51:42 +02:00
2022-10-13 16:09:07 +02:00
#------- Controleur ------
build/$(PACKAGE_PATH)/Controller/GrilleMouseListener.class : src/$(PACKAGE_PATH)/Controller/GrilleMouseListener.java \
build/$(PACKAGE_PATH)/View/Grille.class \
build/$(PACKAGE_PATH)/Model/GrilleModel.class
javac $(JAVAC_OPT) src/$(PACKAGE_PATH)/Controller/GrilleMouseListener.java
2022-10-13 13:40:53 +02:00
2022-10-13 16:09:07 +02:00
#------- Modele ------
2022-10-13 15:51:42 +02:00
build/$(PACKAGE_PATH)/Model/GrilleModel.class : src/$(PACKAGE_PATH)/Model/GrilleModel.java \
build/$(PACKAGE_PATH)/Controller/EventListener/AbstractGridInitiater.class
2022-10-13 13:40:53 +02:00
javac $(JAVAC_OPT) src/$(PACKAGE_PATH)/Model/GrilleModel.java
2022-10-13 16:09:07 +02:00
#------- Utils ------
2022-10-13 13:40:53 +02:00
build/$(PACKAGE_PATH)/Utils/Constants.class : src/$(PACKAGE_PATH)/Utils/Constants.java
javac $(JAVAC_OPT) src/$(PACKAGE_PATH)/Utils/Constants.java
2022-10-13 16:09:07 +02:00
#------- Vue ------
2022-10-13 10:43:46 +02:00
build/$(PACKAGE_PATH)/View/Pion.class : src/$(PACKAGE_PATH)/View/Pion.java \
2022-10-13 13:40:53 +02:00
build/$(PACKAGE_PATH)/Utils/Constants.class
2022-10-13 10:43:46 +02:00
javac $(JAVAC_OPT) src/$(PACKAGE_PATH)/View/Pion.java
2022-10-13 10:43:46 +02:00
build/$(PACKAGE_PATH)/View/Grille.class : src/$(PACKAGE_PATH)/View/Grille.java \
build/$(PACKAGE_PATH)/View/Pion.class \
build/$(PACKAGE_PATH)/Controller/EventListener/GridChangedListener.class \
build/$(PACKAGE_PATH)/Controller/EventListener/GridEvent.class \
build/$(PACKAGE_PATH)/Controller/EventListener/PlayerEvent.class \
build/$(PACKAGE_PATH)/Utils/Constants.class
javac $(JAVAC_OPT) src/$(PACKAGE_PATH)/View/Grille.java
2022-10-13 13:40:53 +02:00
build/$(PACKAGE_PATH)/View/Puissance4Panel.class : src/$(PACKAGE_PATH)/View/Puissance4Panel.java \
2022-10-13 10:43:46 +02:00
build/$(PACKAGE_PATH)/View/Pion.class \
build/$(PACKAGE_PATH)/View/Grille.class
2022-10-13 13:40:53 +02:00
javac $(JAVAC_OPT) src/$(PACKAGE_PATH)/View/Puissance4Panel.java
build/$(PACKAGE_PATH)/View/TestGrille.class : src/$(PACKAGE_PATH)/View/TestGrille.java \
build/$(PACKAGE_PATH)/View/Puissance4Panel.class \
build/$(PACKAGE_PATH)/Model/GrilleModel.class \
build/$(PACKAGE_PATH)/Controller/GrilleMouseListener.class
2022-10-13 10:43:46 +02:00
javac $(JAVAC_OPT) src/$(PACKAGE_PATH)/View/TestGrille.java
2022-10-13 13:40:53 +02:00
testGrille : Model View Utils Events
2022-10-13 10:43:46 +02:00
java -cp build $(PACKAGE).View.TestGrille
clear :
rm -rf build/*