-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
147 lines (96 loc) · 6.35 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#Makefile
JAVAC_OPT = \
-implicit:none \
-d build -cp "build:res/mariadb-client.jar"\
-sourcepath "src"
PACKAGE = fr.iutfbleau.ProjetAgile
PACKAGE_PATH = fr/iutfbleau/ProjetAgile
jar : build/${PACKAGE_PATH}/Main.class
@jar cfme projet.jar manifest.txt ${PACKAGE}.Main res -C build fr
@echo ":: Finish..."
#------------------------------------------------------------------------------------Main-----------------------------------------------------------------------------------------
build/${PACKAGE_PATH}/Main.class : src/${PACKAGE_PATH}/Main.java \
build/${PACKAGE_PATH}/Controleur/Puissance4/ControleurPuissance4.class \
build/${PACKAGE_PATH}/Vue/JFrameJeu.class \
build/${PACKAGE_PATH}/Constant/ConstantesPuissance4.class
@echo ":: Main Creating..."
@javac ${JAVAC_OPT} $<
@echo ":: Main Create..."
#---------------------------------------------------------------------------------Controleur---------------------------------------------------------------------------------------
build/${PACKAGE_PATH}/Controleur/ControleurInterface.class : src/${PACKAGE_PATH}/Controleur/ControleurInterface.java
@javac ${JAVAC_OPT} $<
build/${PACKAGE_PATH}/Controleur/Puissance4/ControleurPuissance4.class : src/${PACKAGE_PATH}/Controleur/Puissance4/ControleurPuissance4.java \
build/${PACKAGE_PATH}/Listener/Puissance4/GrilleListener.class \
build/${PACKAGE_PATH}/Listener/Puissance4/ListenerPuissance4.class \
build/${PACKAGE_PATH}/Modele/Puissance4/Modele.class \
build/${PACKAGE_PATH}/Vue/Puissance4/Puissance4.class
@echo ":: Controleur Creating..."
@javac ${JAVAC_OPT} $<
#------------------------------------------------------------------------------------Modele-----------------------------------------------------------------------------------------
build/${PACKAGE_PATH}/Modele/Puissance4/Modele.class : src/${PACKAGE_PATH}/Modele/Puissance4/Modele.java \
build/${PACKAGE_PATH}/Modele/Puissance4/AbstractModele.class \
build/${PACKAGE_PATH}/Listener/Puissance4/GrilleListener.class \
build/${PACKAGE_PATH}/Listener/Puissance4/JoueurEvent.class
@echo ":: Modele Creating..."
@javac ${JAVAC_OPT} $<
build/${PACKAGE_PATH}/Modele/Puissance4/AbstractModele.class : src/${PACKAGE_PATH}/Modele/Puissance4/AbstractModele.java
@javac ${JAVAC_OPT} $<
#-------------------------------------------------------------------------------------Vue--------------------------------------------------------------------------------------------
build/${PACKAGE_PATH}/Vue/Jeu.class : src/${PACKAGE_PATH}/Vue/Jeu.java
@javac ${JAVAC_OPT} $<
build/${PACKAGE_PATH}/Vue/Puissance4/Puissance4.class : src/${PACKAGE_PATH}/Vue/Puissance4/Puissance4.java \
build/${PACKAGE_PATH}/Vue/Jeu.class \
build/${PACKAGE_PATH}/Vue/Puissance4/Pion.class
@javac ${JAVAC_OPT} $<
build/${PACKAGE_PATH}/Vue/Puissance4/Pion.class : src/${PACKAGE_PATH}/Vue/Puissance4/Pion.java
@javac ${JAVAC_OPT} $<
build/${PACKAGE_PATH}/Vue/JFrameJeu.class : src/${PACKAGE_PATH}/Vue/JFrameJeu.java \
build/${PACKAGE_PATH}/Listener/BoutonListener.class \
build/${PACKAGE_PATH}/Vue/Puissance4/Menu/ChoixJeu.class \
build/${PACKAGE_PATH}/Vue/PanelJeu.class \
build/${PACKAGE_PATH}/Vue/Puissance4/Menu/Menu.class
@echo ":: Vue Creating..."
@javac ${JAVAC_OPT} $<
build/${PACKAGE_PATH}/Vue/PanelJeu.class : src/${PACKAGE_PATH}/Vue/PanelJeu.java
@javac ${JAVAC_OPT} $<
#---------------------------------------Menu------------------------------------------------
build/${PACKAGE_PATH}/Vue/Puissance4/Menu/ChoixJeu.class : src/${PACKAGE_PATH}/Vue/Puissance4/Menu/ChoixJeu.java \
build/${PACKAGE_PATH}/Vue/Puissance4/Menu/ScrollableJPanel.class \
build/${PACKAGE_PATH}/Vue/Boutons.class
@javac ${JAVAC_OPT} $<
build/${PACKAGE_PATH}/Vue/Puissance4/Menu/ScrollableJPanel.class : src/${PACKAGE_PATH}/Vue/Puissance4/Menu/ScrollableJPanel.java
@javac ${JAVAC_OPT} $<
build/${PACKAGE_PATH}/Vue/Puissance4/Menu/Menu.class : src/${PACKAGE_PATH}/Vue/Puissance4/Menu/Menu.java
@javac ${JAVAC_OPT} $<
build/${PACKAGE_PATH}/Vue/Boutons.class : src/${PACKAGE_PATH}/Vue/Boutons.java
@javac ${JAVAC_OPT} $<
#-------------------------------------------------------------------------------------Listener---------------------------------------------------------------------------------------
build/${PACKAGE_PATH}/Listener/Puissance4/GrilleListener.class : src/${PACKAGE_PATH}/Listener/Puissance4/GrilleListener.java \
build/${PACKAGE_PATH}/Listener/Puissance4/GrilleListenerInterface.class
@javac ${JAVAC_OPT} $<
build/${PACKAGE_PATH}/Listener/Puissance4/GrilleEvent.class : src/${PACKAGE_PATH}/Listener/Puissance4/GrilleEvent.java
@javac ${JAVAC_OPT} $<
build/${PACKAGE_PATH}/Listener/Puissance4/GrilleListenerInterface.class : src/${PACKAGE_PATH}/Listener/Puissance4/GrilleListenerInterface.java \
build/${PACKAGE_PATH}/Listener/Puissance4/GrilleEvent.class
@javac ${JAVAC_OPT} $<
build/${PACKAGE_PATH}/Listener/BoutonListener.class : src/${PACKAGE_PATH}/Listener/BoutonListener.java \
build/${PACKAGE_PATH}/Controleur/ControleurInterface.class
@javac ${JAVAC_OPT} $<
build/${PACKAGE_PATH}/Listener/Puissance4/ListenerPuissance4.class : src/${PACKAGE_PATH}/Listener/Puissance4/ListenerPuissance4.java
@javac ${JAVAC_OPT} $<
build/${PACKAGE_PATH}/Listener/Puissance4/JoueurEvent.class : src/${PACKAGE_PATH}/Listener/Puissance4/JoueurEvent.java
@javac ${JAVAC_OPT} $<
#-----------------------------------------------------------------------------------------Constantes -------------------------------------------------------------------------------
build/${PACKAGE_PATH}/Constant/ConstantesPuissance4.class : src/${PACKAGE_PATH}/Constant/ConstantesPuissance4.java
@javac ${JAVAC_OPT} $<
#-----------------------------------------------------------------------------------------Run & Clean -------------------------------------------------------------------------------
doc :
javadoc -d ./doc -sourcepath ./src -subpackages fr -noqualifier java.lang
run : jar
@echo ":: Executing..."
@java -jar projet.jar
clean :
@echo ":: Cleaning..."
@rm -rf build/${PACKAGE_PATH}/* \
rm -rf doc
@echo ":: Clean"