FIprojetIHM2022/java/APIGroupe/Makefile

374 lines
14 KiB
Makefile
Raw Normal View History

2022-10-26 15:10:08 +02:00
# COMMANDES #
JAVAC = javac
# note $$ to get a single shell $
2022-11-12 19:19:37 +01:00
JAVAC_OPTIONS = -implicit:none -d build -classpath "res/mariadb-client.jar:build" -sourcepath src
2022-10-26 15:10:08 +02:00
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
2022-12-08 10:59:44 +01:00
JAR_MNP = IHM.jar
2022-10-26 15:10:08 +02:00
# BUTS FACTICES #
.PHONY : run clean doc
# BUT PAR DEFAUT #
2022-11-14 10:51:56 +01:00
run : build\
${JAR_MNP}
2022-10-26 15:10:08 +02:00
${EXEC_JAR} ${JAR_MNP}
# AUTRE BUTS
doc :
2022-12-03 19:46:29 +01:00
javadoc -d doc src/fr/iutfbleau/projetIHM2022FI2/API/*.java src/fr/iutfbleau/projetIHM2022FI2/MP/*.java src/fr/iutfbleau/projetIHM2022FI2/MP/ROOT/Controller/*.java src/fr/iutfbleau/projetIHM2022FI2/MP/ROOT/View/*.java src/fr/iutfbleau/projetIHM2022FI2/MP/ETU/Controller/*.java src/fr/iutfbleau/projetIHM2022FI2/MP/ETU/View/*.java src/fr/iutfbleau/projetIHM2022FI2/MP/ETU/Model/*.java src/fr/iutfbleau/projetIHM2022FI2/ROOT/Model/*.java src/fr/iutfbleau/projetIHM2022FI2/PROF/Model/*.java src/fr/iutfbleau/projetIHM2022FI2/PROF/View/*.java src/fr/iutfbleau/projetIHM2022FI2/PROF/Controller/*.java
javadoc -d doc src/fr/iutfbleau/projetIHM2022FI2/API/*.java src/fr/iutfbleau/projetIHM2022FI2/MNP/*.java src/fr/iutfbleau/projetIHM2022FI2/MNP/ROOT/Controller/*.java src/fr/iutfbleau/projetIHM2022FI2/MNP/ROOT/View/*.java src/fr/iutfbleau/projetIHM2022FI2/MNP/ETU/Controller/*.java src/fr/iutfbleau/projetIHM2022FI2/MNP/ETU/View/*.java src/fr/iutfbleau/projetIHM2022FI2/MNP/ETU/Model/*.java src/fr/iutfbleau/projetIHM2022FI2/ROOT/Model/*.java src/fr/iutfbleau/projetIHM2022FI2/PROF/Model/*.java src/fr/iutfbleau/projetIHM2022FI2/PROF/View/*.java src/fr/iutfbleau/projetIHM2022FI2/PROF/Controller/*.java
2022-10-26 15:10:08 +02:00
clean :
rm -rf ${BUILD}/* *.jar
# REGLES DE DEPENDANCE #
2022-11-14 10:51:56 +01:00
## Dossier ##
build :
mkdir build
2022-10-26 15:10:08 +02:00
## API ##
${BUILD}/API/Model.class : ${SRC}/API/Model.java
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/API/Model.java
2022-10-26 15:10:08 +02:00
${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
2022-12-03 19:38:26 +01:00
## MP ##
${BUILD}/MP/EtudiantNP.class : ${SRC}/MP/EtudiantNP.java \
${BUILD}/API/Etudiant.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/EtudiantNP.java
${BUILD}/MP/GroupeNP.class : ${SRC}/MP/GroupeNP.java \
${BUILD}/API/Groupe.class \
${BUILD}/API/TypeGroupe.class \
${BUILD}/API/Etudiant.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/GroupeNP.java
${BUILD}/MP/ChangementNP.class : ${BUILD}/API/Changement.class \
${SRC}/MP/ChangementNP.java \
${BUILD}/API/Groupe.class \
${BUILD}/API/Etudiant.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/ChangementNP.java
${BUILD}/MP/AbstractGroupeFactoryNP.class : ${SRC}/MP/AbstractGroupeFactoryNP.java \
${BUILD}/API/AbstractGroupeFactory.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/AbstractGroupeFactoryNP.java
${BUILD}/MP/AbstractChangementFactoryNP.class : ${SRC}/MP/AbstractChangementFactoryNP.java \
${BUILD}/API/AbstractChangementFactory.class \
${BUILD}/API/Changement.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/AbstractChangementFactoryNP.java
## ROOT ##
## View ##
${BUILD}/MP/ROOT/View/FindBarFenetre.class : ${SRC}/MP/ROOT/View/FindBarFenetre.java\
${BUILD}/MP/ROOT/Controller/ListenerFindBar.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/ROOT/View/FindBarFenetre.java
${BUILD}/MP/ROOT/View/FenetreChangement.class : ${SRC}/MP/ROOT/View/FenetreChangement.java \
${BUILD}/MP/ROOT/Controller/ActionChangement.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/ROOT/View/FenetreChangement.java
${BUILD}/MP/ROOT/View/FenetreGroupe.class : ${SRC}/MP/ROOT/View/FenetreGroupe.java \
${BUILD}/Permanent/Controller/ObservateurFenetre.class \
${BUILD}/Permanent/Controller/ObservateurChangeGroupe.class \
${BUILD}/MP/ROOT/Controller/ObservateurModifGroupe.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/ROOT/View/FenetreGroupe.java
${BUILD}/MP/ROOT/View/FenetreEtudiant.class :${SRC}/MP/ROOT/View/FenetreEtudiant.java \
${BUILD}/Permanent/Controller/ObservateurFenetre.class \
${BUILD}/Permanent/Controller/ObservateurChangeGroupe.class \
${BUILD}/MP/ROOT/View/PanelEtudiant.class \
${BUILD}/Permanent/Controller/ActionListenerChangeEtu.class \
${BUILD}/MP/ROOT/Controller/ActionListChange.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/ROOT/View/FenetreEtudiant.java
${BUILD}/MP/ROOT/View/PanelEtudiant.class : ${SRC}/MP/ROOT/View/PanelEtudiant.java \
${BUILD}/MP/ROOT/Controller/ActionListenerSuprEtu.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/ROOT/View/PanelEtudiant.java
${BUILD}/MP/ROOT/View/FenetreSelectionEtu.class : ${SRC}/MP/ROOT/View/FenetreSelectionEtu.java \
${BUILD}/MP/ROOT/Controller/SelecteurEtudiant.class \
${BUILD}/MP/ROOT/Controller/ActionListenerNouveauEtu.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/ROOT/View/FenetreSelectionEtu.java
## Controller ##
${BUILD}/MP/ROOT/Controller/ListenerFindBar.class : ${SRC}/MP/ROOT/Controller/ListenerFindBar.java
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/ROOT/Controller/ListenerFindBar.java
${BUILD}/MP/ROOT/Controller/ActionListenerSuprEtu.class : ${SRC}/MP/ROOT/Controller/ActionListenerSuprEtu.java \
${BUILD}/API/Etudiant.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/ROOT/Controller/ActionListenerSuprEtu.java
${BUILD}/MP/ROOT/Controller/ActionChangement.class : ${SRC}/MP/ROOT/Controller/ActionChangement.java
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/ROOT/Controller/ActionChangement.java
${BUILD}/MP/ROOT/Controller/ObservateurModifGroupe.class : ${SRC}/MP/ROOT/Controller/ObservateurModifGroupe.java \
${BUILD}/MP/ROOT/View/FenetreSelectionEtu.class \
${BUILD}/MP/ROOT/Controller/SelecteurEtudiant.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/ROOT/Controller/ObservateurModifGroupe.java
${BUILD}/MP/ROOT/Controller/SelecteurEtudiant.class : ${SRC}/MP/ROOT/Controller/SelecteurEtudiant.java
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/ROOT/Controller/SelecteurEtudiant.java
${BUILD}/MP/ROOT/Controller/ActionListenerNouveauEtu.class : ${SRC}/MP/ROOT/Controller/ActionListenerNouveauEtu.java
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/ROOT/Controller/ActionListenerNouveauEtu.java
${BUILD}/MP/ROOT/Controller/ActionListChange.class : ${SRC}/MP/ROOT/Controller/ActionListChange.java
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/ROOT/Controller/ActionListChange.java
##....
##  Model ###
${BUILD}/MP/ROOT/Model/ModelRoot.class : ${SRC}/MP/ROOT/Model/ModelRoot.java \
${BUILD}/API/Model.class \
${BUILD}/MP/ROOT/View/FenetreGroupe.class \
${BUILD}/MP/ROOT/View/FenetreEtudiant.class \
${BUILD}/Permanent/View/Chargement.class \
${BUILD}/MP/ROOT/View/FenetreChangement.class \
${BUILD}/MP/ROOT/View/FindBarFenetre.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/ROOT/Model/ModelRoot.java
## ETU ##
## View ##
${BUILD}/MP/ETU/View/FenetreGroupe.class : ${SRC}/MP/ETU/View/FenetreGroupe.java \
${BUILD}/Permanent/Controller/ObservateurFenetre.class \
${BUILD}/Permanent/Controller/ObservateurChangeGroupe.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/ETU/View/FenetreGroupe.java
${BUILD}/MP/ETU/View/FenetreEtudiant.class :${SRC}/MP/ETU/View/FenetreEtudiant.java \
${BUILD}/Permanent/Controller/ObservateurFenetre.class \
${BUILD}/Permanent/Controller/ObservateurChangeGroupe.class \
${BUILD}/MP/ETU/View/PanelEtudiant.class \
${BUILD}/Permanent/Controller/ActionListenerChangeEtu.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/ETU/View/FenetreEtudiant.java
${BUILD}/MP/ETU/View/PanelEtudiant.class : ${SRC}/MP/ETU/View/PanelEtudiant.java
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/ETU/View/PanelEtudiant.java
## Controller ##
##....
##  Model ###
${BUILD}/MP/ETU/Model/ModelEtu.class : ${SRC}/MP/ETU/Model/ModelEtu.java \
${BUILD}/API/Model.class \
${BUILD}/MP/ETU/View/FenetreGroupe.class \
${BUILD}/MP/ETU/View/FenetreEtudiant.class \
${BUILD}/Permanent/View/Chargement.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/ETU/Model/ModelEtu.java
## PROF ##
## View ##
${BUILD}/MP/PROF/View/FenetreGroupe.class : ${SRC}/MP/PROF/View/FenetreGroupe.java \
${BUILD}/Permanent/Controller/ObservateurFenetre.class \
${BUILD}/Permanent/Controller/ObservateurChangeGroupe.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/PROF/View/FenetreGroupe.java
${BUILD}/MP/PROF/View/FenetreEtudiant.class :${SRC}/MP/PROF/View/FenetreEtudiant.java \
${BUILD}/Permanent/Controller/ObservateurChangeGroupe.class \
${BUILD}/MP/PROF/View/PanelEtudiant.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/PROF/View/FenetreEtudiant.java
${BUILD}/MP/PROF/View/PanelEtudiant.class : ${SRC}/MP/PROF/View/PanelEtudiant.java
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/PROF/View/PanelEtudiant.java
## Controller ##
##....
##  Model ###
${BUILD}/MP/PROF/Model/ModelProf.class : ${SRC}/MP/PROF/Model/ModelProf.java \
${BUILD}/API/Model.class \
${BUILD}/MP/PROF/View/FenetreGroupe.class \
${BUILD}/MP/PROF/View/FenetreEtudiant.class \
${BUILD}/Permanent/View/Chargement.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MP/PROF/Model/ModelProf.java
2022-10-26 15:10:08 +02:00
## MNP ##
${BUILD}/MNP/AbstractGroupeFactoryNP.class : ${SRC}/MNP/AbstractGroupeFactoryNP.java \
${BUILD}/API/AbstractGroupeFactory.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MNP/AbstractGroupeFactoryNP.java
2022-10-31 12:53:56 +01:00
${BUILD}/MNP/AbstractChangementFactoryNP.class : ${SRC}/MNP/AbstractChangementFactoryNP.java \
${BUILD}/API/AbstractChangementFactory.class \
${BUILD}/API/Changement.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MNP/AbstractChangementFactoryNP.java
2022-12-03 19:38:26 +01:00
## ROOT ##
2022-10-31 15:02:52 +01:00
2022-11-15 15:08:13 +01:00
##  Model ###
2022-12-03 19:38:26 +01:00
${BUILD}/MNP/ROOT/Model/ModelRoot.class : ${SRC}/MNP/ROOT/Model/ModelRoot.java \
${BUILD}/API/Model.class \
2022-12-08 10:59:44 +01:00
${BUILD}/MP/ROOT/View/FenetreGroupe.class \
${BUILD}/MP/ROOT/View/FenetreEtudiant.class \
${BUILD}/Permanent/View/Chargement.class \
2022-12-08 10:59:44 +01:00
${BUILD}/MP/ROOT/View/FenetreChangement.class \
${BUILD}/MP/ROOT/View/FindBarFenetre.class
2022-12-03 19:38:26 +01:00
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MNP/ROOT/Model/ModelRoot.java
2022-11-14 22:57:17 +01:00
## ETU ##
2022-11-15 15:08:13 +01:00
##  Model ###
2022-12-03 19:38:26 +01:00
${BUILD}/MNP/ETU/Model/ModelEtu.class : ${SRC}/MNP/ETU/Model/ModelEtu.java \
${BUILD}/API/Model.class \
2022-12-08 10:59:44 +01:00
${BUILD}/MP/ETU/View/FenetreGroupe.class \
${BUILD}/MP/ETU/View/FenetreEtudiant.class \
${BUILD}/Permanent/View/Chargement.class
2022-12-03 19:38:26 +01:00
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MNP/ETU/Model/ModelEtu.java
## PROF ##
##  Model ###
${BUILD}/MNP/PROF/Model/ModelProf.class : ${SRC}/MNP/PROF/Model/ModelProf.java \
${BUILD}/API/Model.class \
2022-12-08 10:59:44 +01:00
${BUILD}/MP/PROF/View/FenetreGroupe.class \
${BUILD}/MP/PROF/View/FenetreEtudiant.class \
2022-12-03 19:38:26 +01:00
${BUILD}/Permanent/View/Chargement.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MNP/PROF/Model/ModelProf.java
2022-11-15 15:08:13 +01:00
2022-12-03 19:38:26 +01:00
##... FIN MNP ##
2022-11-15 15:08:13 +01:00
## Permanent ##
2022-10-26 15:10:08 +02:00
${BUILD}/Permanent/Connexion.class : ${SRC}/Permanent/Connexion.java
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Permanent/View/Connexion.java
2022-12-08 10:59:44 +01:00
${BUILD}/Permanent/IHM.class : ${SRC}/Permanent/IHM.java \
2022-12-03 19:38:26 +01:00
${BUILD}/MP/EtudiantNP.class \
${BUILD}/MP/GroupeNP.class \
${BUILD}/MP/ChangementNP.class \
${BUILD}/MP/AbstractGroupeFactoryNP.class \
${BUILD}/MP/AbstractChangementFactoryNP.class \
${BUILD}/MP/ROOT/Model/ModelRoot.class \
${BUILD}/MP/ETU/Model/ModelEtu.class \
${BUILD}/MP/PROF/Model/ModelProf.class \
${BUILD}/MNP/AbstractGroupeFactoryNP.class \
${BUILD}/MNP/AbstractChangementFactoryNP.class \
${BUILD}/MNP/ROOT/Model/ModelRoot.class \
${BUILD}/MNP/ETU/Model/ModelEtu.class \
${BUILD}/MNP/PROF/Model/ModelProf.class \
${BUILD}/Permanent/View/Connexion.class \
${BUILD}/Permanent/Util/User.class
2022-12-08 10:59:44 +01:00
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Permanent/IHM.java
## View ##
${BUILD}/Permanent/View/Chargement.class : ${SRC}/Permanent/View/Chargement.java
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Permanent//View/Chargement.java
${BUILD}/Permanent/View/Connexion.class : ${SRC}/Permanent/View/Connexion.java
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Permanent/View/Connexion.java
## Util  ##
2022-10-26 15:10:08 +02:00
${BUILD}/Permanent/Util/User.class : ${SRC}/Permanent/Util/User.java
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Permanent/Util/User.java
2022-11-28 10:29:52 +01:00
## Controller ##
${BUILD}/Permanent/Controller/ObservateurFenetre.class : ${SRC}/Permanent/Controller/ObservateurFenetre.java
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Permanent/Controller/ObservateurFenetre.java
${BUILD}/Permanent/Controller/ObservateurChangeGroupe.class : ${SRC}/Permanent/Controller/ObservateurChangeGroupe.java
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Permanent/Controller/ObservateurChangeGroupe.java
${BUILD}/Permanent/Controller/ActionListenerChangeEtu.class : ${SRC}/Permanent/Controller/ActionListenerChangeEtu.java \
${BUILD}/Permanent/Controller/ControllerGroupeBChangement.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Permanent/Controller/ActionListenerChangeEtu.java
${BUILD}/Permanent/Controller/ControllerGroupeBChangement.class : ${SRC}/Permanent/Controller/ControllerGroupeBChangement.java
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Permanent/Controller/ControllerGroupeBChangement.java
2022-10-26 15:10:08 +02:00
# ## JARS ##
2022-12-08 10:59:44 +01:00
${JAR_MNP} : ${BUILD}/Permanent/IHM.class
${JAR} cfme ${JAR_MNP} Manifest.txt fr/iutfbleau/projetIHM2022FI2/Permanent/IHM res/ -C build fr