258 lines
9.2 KiB
Makefile
258 lines
9.2 KiB
Makefile
# COMMANDES #
|
||
JAVAC = javac
|
||
# note $$ to get a single shell $
|
||
JAVAC_OPTIONS = -implicit:none -d build -classpath "res/mariadb-client.jar:build" -sourcepath src
|
||
JAVA = java
|
||
JAR = jar
|
||
EXEC_JAR = ${JAVA} -jar
|
||
|
||
# CHEMINS RELATIFS
|
||
SRC = src/fr/iutfbleau/projetIHM2022FI2
|
||
BUILD = build/fr/iutfbleau/projetIHM2022FI2
|
||
DOC = doc/fr/iutfbleau/projetIHM2022FI2
|
||
|
||
# CHOIX NOMS
|
||
JAR_MNP = test-mnp.jar
|
||
|
||
# BUTS FACTICES #
|
||
.PHONY : run clean doc
|
||
|
||
# BUT PAR DEFAUT #
|
||
run : build\
|
||
${JAR_MNP}
|
||
${EXEC_JAR} ${JAR_MNP}
|
||
|
||
# AUTRE BUTS
|
||
doc :
|
||
javadoc -d doc src/fr/iutfbleau/projetIHM2022FI2/API/*.java src/fr/iutfbleau/projetIHM2022FI2/MNP/*.java src/fr/iutfbleau/projetIHM2022FI2/ROOT/Controller/*.java src/fr/iutfbleau/projetIHM2022FI2/ROOT/View/*.java
|
||
|
||
clean :
|
||
rm -rf ${BUILD}/* *.jar
|
||
|
||
|
||
# REGLES DE DEPENDANCE #
|
||
## Dossier ##
|
||
build :
|
||
mkdir build
|
||
## API ##
|
||
${BUILD}/API/MonPrint.class : ${SRC}/API/MonPrint.java
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/API/MonPrint.java
|
||
|
||
${BUILD}/API/TypeGroupe.class : ${SRC}/API/TypeGroupe.java
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/API/TypeGroupe.java
|
||
|
||
${BUILD}/API/Groupe.class : ${SRC}/API/Groupe.java \
|
||
${BUILD}/API/TypeGroupe.class\
|
||
${BUILD}/API/MonPrint.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/API/Groupe.java
|
||
|
||
${BUILD}/API/Etudiant.class : ${SRC}/API/Etudiant.java \
|
||
${BUILD}/API/MonPrint.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/API/Etudiant.java
|
||
|
||
${BUILD}/API/Changement.class : ${SRC}/API/Changement.java \
|
||
${BUILD}/API/Etudiant.class \
|
||
${BUILD}/API/Groupe.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/API/Changement.java
|
||
|
||
${BUILD}/API/AbstractGroupeFactory.class : ${SRC}/API/AbstractGroupeFactory.java \
|
||
${BUILD}/API/Groupe.class \
|
||
${BUILD}/API/Etudiant.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/API/AbstractGroupeFactory.java
|
||
|
||
${BUILD}/API/AbstractChangementFactory.class : ${SRC}/API/AbstractChangementFactory.java \
|
||
${BUILD}/API/AbstractGroupeFactory.class \
|
||
${BUILD}/API/Changement.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/API/AbstractChangementFactory.java
|
||
|
||
## MNP ##
|
||
|
||
${BUILD}/MNP/EtudiantNP.class : ${SRC}/MNP/EtudiantNP.java \
|
||
${BUILD}/API/Etudiant.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MNP/EtudiantNP.java
|
||
|
||
|
||
${BUILD}/MNP/GroupeNP.class : ${SRC}/MNP/GroupeNP.java \
|
||
${BUILD}/API/Groupe.class \
|
||
${BUILD}/API/TypeGroupe.class \
|
||
${BUILD}/API/Etudiant.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MNP/GroupeNP.java
|
||
|
||
|
||
${BUILD}/MNP/ChangementNP.class : ${BUILD}/API/Changement.class \
|
||
${SRC}/MNP/ChangementNP.java \
|
||
${BUILD}/API/Groupe.class \
|
||
${BUILD}/API/Etudiant.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MNP/ChangementNP.java
|
||
|
||
${BUILD}/MNP/AbstractGroupeFactoryNP.class : ${SRC}/MNP/AbstractGroupeFactoryNP.java \
|
||
${BUILD}/API/AbstractGroupeFactory.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MNP/AbstractGroupeFactoryNP.java
|
||
|
||
${BUILD}/MNP/AbstractChangementFactoryNP.class : ${SRC}/MNP/AbstractChangementFactoryNP.java \
|
||
${BUILD}/API/AbstractChangementFactory.class \
|
||
${BUILD}/API/Changement.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MNP/AbstractChangementFactoryNP.java
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
## ROOT ##
|
||
|
||
## Util ###
|
||
|
||
${BUILD}/ROOT/Util/BD.class : ${SRC}/ROOT/Util/BD.java
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ROOT/Util/BD.java
|
||
|
||
|
||
|
||
## View ##
|
||
|
||
${BUILD}/ROOT/View/FenetreGroupe.class : ${SRC}/ROOT/View/FenetreGroupe.java \
|
||
${BUILD}/ROOT/Controller/ObservateurFenetre.class \
|
||
${BUILD}/ROOT/Controller/ObservateurChangeGroupe.class \
|
||
${BUILD}/ROOT/Controller/ObservateurModifGroupe.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ROOT/View/FenetreGroupe.java
|
||
|
||
${BUILD}/ROOT/View/FenetreEtudiant.class :${SRC}/ROOT/View/FenetreEtudiant.java \
|
||
${BUILD}/ROOT/Controller/ObservateurFenetre.class \
|
||
${BUILD}/ROOT/Controller/ObservateurChangeGroupe.class \
|
||
${BUILD}/ROOT/View/PanelEtudiant.class \
|
||
${BUILD}/ROOT/Controller/ActionListenerChangeEtu.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ROOT/View/FenetreEtudiant.java
|
||
|
||
${BUILD}/ROOT/View/PanelEtudiant.class : ${SRC}/ROOT/View/PanelEtudiant.java \
|
||
${BUILD}/ROOT/Controller/ActionListenerSuprEtu.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ROOT/View/PanelEtudiant.java
|
||
|
||
${BUILD}/ROOT/View/Chargement.class : ${SRC}/ROOT/View/Chargement.java
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ROOT/View/Chargement.java
|
||
|
||
${BUILD}/ROOT/View/FenetreSelectionEtu.class : ${SRC}/ROOT/View/FenetreSelectionEtu.java \
|
||
${BUILD}/ROOT/Controller/SelecteurEtudiant.class \
|
||
${BUILD}/ROOT/Controller/ActionListenerNouveauEtu.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ROOT/View/FenetreSelectionEtu.java
|
||
|
||
|
||
## Controller ##
|
||
${BUILD}/ROOT/Controller/ActionListenerChangeEtu.class : ${SRC}/ROOT/Controller/ActionListenerChangeEtu.java
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ROOT/Controller/ActionListenerChangeEtu.java
|
||
|
||
${BUILD}/ROOT/Controller/ActionListenerSuprEtu.class : ${SRC}/ROOT/Controller/ActionListenerSuprEtu.java \
|
||
${BUILD}/API/Etudiant.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ROOT/Controller/ActionListenerSuprEtu.java
|
||
|
||
|
||
${BUILD}/ROOT/Controller/ObservateurFenetre.class : ${SRC}/ROOT/Controller/ObservateurFenetre.java
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ROOT/Controller/ObservateurFenetre.java
|
||
|
||
${BUILD}/ROOT/Controller/ObservateurModifGroupe.class : ${SRC}/ROOT/Controller/ObservateurModifGroupe.java \
|
||
${BUILD}/ROOT/View/FenetreSelectionEtu.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ROOT/Controller/ObservateurModifGroupe.java
|
||
|
||
${BUILD}/ROOT/Controller/ObservateurChangeGroupe.class : ${SRC}/ROOT/Controller/ObservateurChangeGroupe.java
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ROOT/Controller/ObservateurChangeGroupe.java
|
||
|
||
${BUILD}/ROOT/Controller/SelecteurEtudiant.class : ${SRC}/ROOT/Controller/SelecteurEtudiant.java
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ROOT/Controller/SelecteurEtudiant.java
|
||
|
||
${BUILD}/ROOT/Controller/ActionListenerNouveauEtu.class : ${SRC}/ROOT/Controller/ActionListenerNouveauEtu.java
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ROOT/Controller/ActionListenerNouveauEtu.java
|
||
|
||
##....
|
||
|
||
|
||
## Model ###
|
||
|
||
${BUILD}/ROOT/Model/Model.class : ${SRC}/ROOT/Model/Model.java \
|
||
${BUILD}/ROOT/View/FenetreGroupe.class \
|
||
${BUILD}/ROOT/View/FenetreEtudiant.class \
|
||
${BUILD}/ROOT/View/Chargement.class \
|
||
${BUILD}/ROOT/Util/BD.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ROOT/Model/Model.java
|
||
|
||
|
||
|
||
|
||
|
||
|
||
## ETU ##
|
||
|
||
## Util ###
|
||
|
||
${BUILD}/ETU/Util/BD.class : ${SRC}/ETU/Util/BD.java
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ETU/Util/BD.java
|
||
|
||
|
||
## View ##
|
||
|
||
${BUILD}/ETU/View/FenetreGroupe.class : ${SRC}/ETU/View/FenetreGroupe.java \
|
||
${BUILD}/ETU/Controller/ObservateurFenetre.class \
|
||
${BUILD}/ETU/Controller/ObservateurChangeGroupe.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ETU/View/FenetreGroupe.java
|
||
|
||
${BUILD}/ETU/View/FenetreEtudiant.class :${SRC}/ETU/View/FenetreEtudiant.java \
|
||
${BUILD}/ETU/Controller/ObservateurFenetre.class \
|
||
${BUILD}/ETU/Controller/ObservateurChangeGroupe.class \
|
||
${BUILD}/ETU/View/PanelEtudiant.class \
|
||
${BUILD}/ETU/Controller/ActionListenerChangeEtu.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ETU/View/FenetreEtudiant.java
|
||
|
||
${BUILD}/ETU/View/PanelEtudiant.class : ${SRC}/ETU/View/PanelEtudiant.java
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ETU/View/PanelEtudiant.java
|
||
|
||
${BUILD}/ETU/View/Chargement.class : ${SRC}/ETU/View/Chargement.java
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ETU/View/Chargement.java
|
||
|
||
|
||
## Controller ##
|
||
${BUILD}/ETU/Controller/ActionListenerChangeEtu.class : ${SRC}/ETU/Controller/ActionListenerChangeEtu.java
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ETU/Controller/ActionListenerChangeEtu.java
|
||
|
||
${BUILD}/ETU/Controller/ObservateurFenetre.class : ${SRC}/ETU/Controller/ObservateurFenetre.java
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ETU/Controller/ObservateurFenetre.java
|
||
|
||
${BUILD}/ETU/Controller/ObservateurChangeGroupe.class : ${SRC}/ETU/Controller/ObservateurChangeGroupe.java
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ETU/Controller/ObservateurChangeGroupe.java
|
||
|
||
##....
|
||
|
||
|
||
## Model ###
|
||
|
||
${BUILD}/ETU/Model/Model.class : ${SRC}/ETU/Model/Model.java \
|
||
${BUILD}/ETU/View/FenetreGroupe.class \
|
||
${BUILD}/ETU/View/FenetreEtudiant.class \
|
||
${BUILD}/ETU/View/Chargement.class \
|
||
${BUILD}/ETU/Util/BD.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ETU/Model/Model.java
|
||
|
||
|
||
## TEST ##
|
||
|
||
${BUILD}/Test/Connexion.class : ${SRC}/Test/Connexion.java
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Test/Connexion.java
|
||
|
||
${BUILD}/Test/TestTexteMNP.class : ${SRC}/Test/TestTexteMNP.java \
|
||
${BUILD}/MNP/EtudiantNP.class \
|
||
${BUILD}/MNP/GroupeNP.class \
|
||
${BUILD}/MNP/ChangementNP.class \
|
||
${BUILD}/MNP/AbstractGroupeFactoryNP.class \
|
||
${BUILD}/MNP/AbstractChangementFactoryNP.class \
|
||
${BUILD}/ROOT/Model/Model.class \
|
||
${BUILD}/ETU/Model/Model.class \
|
||
${BUILD}/Test/Connexion.class \
|
||
${BUILD}/Test/User.class
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Test/TestTexteMNP.java
|
||
|
||
${BUILD}/Test/User.class : ${SRC}/Test/User.java
|
||
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Test/User.java
|
||
|
||
# ## JARS ##
|
||
|
||
${JAR_MNP} : ${BUILD}/Test/TestTexteMNP.class
|
||
${JAR} cfme ${JAR_MNP} Manifest.txt fr/iutfbleau/projetIHM2022FI2/Test/TestTexteMNP res/ -C build fr
|