73 lines
2.1 KiB
Makefile
73 lines
2.1 KiB
Makefile
### VARIABLES ###
|
|
|
|
DOC = ./documentation/
|
|
|
|
SRC = ./sources/
|
|
|
|
JC = javac
|
|
JCFLAGS = -encoding UTF-8 -implicit:none -cp ./sources/
|
|
|
|
JVM = java -cp ./sources/
|
|
JVMFLAGS =
|
|
|
|
### REGLES ESSENTIELLES ###
|
|
|
|
${SRC}Main.class : ${SRC}Main.java ${SRC}MenuAccueil.class
|
|
${JC} ${JCFLAGS} ${SRC}Main.java
|
|
|
|
${SRC}MenuAccueil.class : ${SRC}MenuAccueil.java ${SRC}ControleurAccueil.class
|
|
${JC} ${JCFLAGS} ${SRC}MenuAccueil.java
|
|
|
|
${SRC}ControleurAccueil.class : ${SRC}ControleurAccueil.java ${SRC}MenuInitialisation.class
|
|
${JC} ${JCFLAGS} ${SRC}ControleurAccueil.java
|
|
|
|
${SRC}MenuInitialisation.class : ${SRC}MenuInitialisation.java ${SRC}ControleurInitialisation.class
|
|
${JC} ${JCFLAGS} ${SRC}MenuInitialisation.java
|
|
|
|
${SRC}ControleurInitialisation.class : ${SRC}ControleurInitialisation.java ${SRC}GrilleConfig.class
|
|
${JC} ${JCFLAGS} ${SRC}ControleurInitialisation.java
|
|
|
|
${SRC}GrilleConfig.class : ${SRC}GrilleConfig.java ${SRC}GrillePanel.class
|
|
${JC} ${JCFLAGS} ${SRC}GrilleConfig.java
|
|
|
|
${SRC}GrillePanel.class : ${SRC}GrillePanel.java ${SRC}MenuModification.class
|
|
${JC} ${JCFLAGS} ${SRC}GrillePanel.java
|
|
|
|
${SRC}MenuModification.class : ${SRC}MenuModification.java ${SRC}ControleurModification.class
|
|
${JC} ${JCFLAGS} ${SRC}MenuModification.java
|
|
|
|
${SRC}ControleurModification.class : ${SRC}ControleurModification.java ${SRC}ModificateurGrille.class
|
|
${JC} ${JCFLAGS} ${SRC}ControleurModification.java
|
|
|
|
${SRC}ModificateurGrille.class : ${SRC}ModificateurGrille.java ${SRC}MenuSimulation.class
|
|
${JC} ${JCFLAGS} ${SRC}ModificateurGrille.java
|
|
|
|
${SRC}MenuSimulation.class : ${SRC}MenuSimulation.java ${SRC}ControleurSimulation.class
|
|
${JC} ${JCFLAGS} ${SRC}MenuSimulation.java
|
|
|
|
${SRC}ControleurSimulation.class : ${SRC}ControleurSimulation.java ${SRC}Algorithmes.class
|
|
${JC} ${JCFLAGS} ${SRC}ControleurSimulation.java
|
|
|
|
${SRC}Algorithmes.class : ${SRC}Algorithmes.java
|
|
${JC} ${JCFLAGS} ${SRC}Algorithmes.java
|
|
|
|
### REGLES OPTIONNELLES ###
|
|
|
|
run : ${SRC}Main.class
|
|
${JVM} ${JVMFLAGS} Main
|
|
|
|
doc :
|
|
javadoc -d ${DOC} ${SRC}*.java
|
|
firefox ${DOC}allclasses-index.html
|
|
|
|
clean :
|
|
rm -f ${SRC}*.class
|
|
rm -r ${DOC}
|
|
|
|
mrproper : clean ${SRC}Main.class
|
|
|
|
### BUTS FACTICES ###
|
|
|
|
.PHONY : run clean mrproper
|
|
|
|
### FIN ###
|