FIprojetIHM2022/java/APIGroupe/Makefile

258 lines
9.2 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
JAR_MNP = test-mnp.jar
# 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 :
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
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/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
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-10-26 15:10:08 +02:00
## ROOT ##
2022-10-31 15:02:52 +01:00
2022-11-15 15:08:13 +01:00
## Util ###
${BUILD}/ROOT/Util/BD.class : ${SRC}/ROOT/Util/BD.java
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ROOT/Util/BD.java
2022-11-28 10:29:52 +01:00
2022-11-15 15:08:13 +01:00
2022-10-31 15:02:52 +01:00
## 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
2022-11-14 22:57:17 +01:00
2022-10-31 15:02:52 +01:00
## Controller ##
${BUILD}/ROOT/Controller/ActionListenerChangeEtu.class : ${SRC}/ROOT/Controller/ActionListenerChangeEtu.java
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ROOT/Controller/ActionListenerChangeEtu.java
2022-11-17 13:13:43 +01:00
${BUILD}/ROOT/Controller/ActionListenerSuprEtu.class : ${SRC}/ROOT/Controller/ActionListenerSuprEtu.java \
2022-11-17 13:13:43 +01:00
${BUILD}/API/Etudiant.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ROOT/Controller/ActionListenerSuprEtu.java
2022-11-17 13:13:43 +01:00
${BUILD}/ROOT/Controller/ObservateurFenetre.class : ${SRC}/ROOT/Controller/ObservateurFenetre.java
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ROOT/Controller/ObservateurFenetre.java
2022-10-31 15:02:52 +01:00
${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 \
2022-11-28 10:29:52 +01:00
${BUILD}/ROOT/Util/BD.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ROOT/Model/Model.java
2022-11-14 22:57:17 +01:00
2022-11-17 10:34:29 +01:00
2022-11-17 13:13:43 +01:00
## 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
2022-10-31 15:02:52 +01:00
##....
2022-10-26 15:10:08 +02:00
2022-11-15 15:08:13 +01:00
##  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 \
2022-11-28 10:29:52 +01:00
${BUILD}/ETU/Util/BD.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/ETU/Model/Model.java
2022-11-15 15:08:13 +01:00
2022-10-26 15:10:08 +02:00
## TEST ##
${BUILD}/Test/Connexion.class : ${SRC}/Test/Connexion.java
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Test/Connexion.java
2022-10-26 15:10:08 +02:00
${BUILD}/Test/TestTexteMNP.class : ${SRC}/Test/TestTexteMNP.java \
${BUILD}/MNP/EtudiantNP.class \
${BUILD}/MNP/GroupeNP.class \
${BUILD}/MNP/ChangementNP.class \
2022-10-31 12:53:56 +01:00
${BUILD}/MNP/AbstractGroupeFactoryNP.class \
2022-10-31 15:02:52 +01:00
${BUILD}/MNP/AbstractChangementFactoryNP.class \
${BUILD}/ROOT/Model/Model.class \
${BUILD}/ETU/Model/Model.class \
2022-11-28 10:29:52 +01:00
${BUILD}/Test/Connexion.class \
${BUILD}/Test/User.class
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Test/TestTexteMNP.java
2022-10-26 15:10:08 +02:00
2022-11-28 10:29:52 +01:00
${BUILD}/Test/User.class : ${SRC}/Test/User.java
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Test/User.java
2022-10-26 15:10:08 +02:00
# ## JARS ##
${JAR_MNP} : ${BUILD}/Test/TestTexteMNP.class
2022-11-12 19:19:37 +01:00
${JAR} cfme ${JAR_MNP} Manifest.txt fr/iutfbleau/projetIHM2022FI2/Test/TestTexteMNP res/ -C build fr