FIprojetAgile2022Groupe3B/projetAgile/Makefile

93 lines
3.8 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 \
build/$(PACKAGE_PATH)/View/Puissance4Panel.class \
build/$(PACKAGE_PATH)/View/TestGrille.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
Controller : build/$(PACKAGE_PATH)/Controller/GrilleMouseListener.class
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) $<
build/$(PACKAGE_PATH)/Controller/EventListener/GridEvent.class : src/$(PACKAGE_PATH)/Controller/EventListener/GridEvent.java
javac $(JAVAC_OPT) $<
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) $<
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) $<
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) $<
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
javac $(JAVAC_OPT) $<
2022-10-13 13:40:53 +02:00
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) $<
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
javac $(JAVAC_OPT) $<
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) $<
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
javac $(JAVAC_OPT) $<
2022-10-13 13:40:53 +02:00
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
javac $(JAVAC_OPT) $<
2022-10-13 13:40:53 +02:00
testGrille : Controller Model View Utils Events
2022-10-13 10:43:46 +02:00
java -cp build $(PACKAGE).View.TestGrille
clear :
rm -rf build/*