156 lines
5.9 KiB
Makefile
156 lines
5.9 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 : ${JAR_MNP}
|
|
${EXEC_JAR} ${JAR_MNP}
|
|
|
|
# AUTRE BUTS
|
|
doc :
|
|
javadoc -d doc src/fr/iutfbleau/projetIHM2022FI2/API/*.java src/fr/iutfbleau/projetIHM2022FI2/MNP/*.java
|
|
|
|
clean :
|
|
rm -rf ${BUILD}/* *.jar
|
|
|
|
|
|
# REGLES DE DEPENDANCE #
|
|
|
|
## 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
|
|
|
|
|
|
## Graphic ##
|
|
|
|
## View ##
|
|
${BUILD}/Graphic/View/FenetreGroupe.class : ${SRC}/Graphic/View/FenetreGroupe.java \
|
|
${BUILD}/Graphic/Controller/ObservateurFenetre.class \
|
|
${BUILD}/Graphic/Controller/ObservateurChangeGroupe.class \
|
|
${BUILD}/Graphic/Controller/ObservateurModifGroupe.class
|
|
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Graphic/View/FenetreGroupe.java
|
|
|
|
${BUILD}/Graphic/View/FenetreEtudiant.class :${SRC}/Graphic/View/FenetreEtudiant.java \
|
|
${BUILD}/Graphic/Controller/ObservateurFenetre.class \
|
|
${BUILD}/Graphic/Controller/ObservateurChangeGroupe.class \
|
|
${BUILD}/Graphic/View/PanelEtudiant.class
|
|
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Graphic/View/FenetreEtudiant.java
|
|
|
|
${BUILD}/Graphic/View/PanelEtudiant.class : ${SRC}/Graphic/View/PanelEtudiant.java
|
|
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Graphic/View/PanelEtudiant.java
|
|
|
|
${BUILD}/Graphic/View/Chargement.class : ${SRC}/Graphic/View/Chargement.java
|
|
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Graphic/View/Chargement.java
|
|
|
|
|
|
${BUILD}/Graphic/Model.class : ${SRC}/Graphic/Model.java \
|
|
${BUILD}/Graphic/View/FenetreGroupe.class \
|
|
${BUILD}/Graphic/View/FenetreEtudiant.class \
|
|
${BUILD}/Graphic/View/Chargement.class
|
|
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Graphic/Model.java
|
|
|
|
${BUILD}/Graphic/View/FenetreSelectionEtu.class : ${SRC}/Graphic/View/FenetreSelectionEtu.java \
|
|
${BUILD}/Graphic/Controller/SelecteurEtudiant.class
|
|
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Graphic/View/FenetreSelectionEtu.java
|
|
## Controller ##
|
|
${BUILD}/Graphic/Controller/ObservateurFenetre.class : ${SRC}/Graphic/Controller/ObservateurFenetre.java
|
|
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Graphic/Controller/ObservateurFenetre.java
|
|
|
|
${BUILD}/Graphic/Controller/ObservateurModifGroupe.class : ${SRC}/Graphic/Controller/ObservateurModifGroupe.java \
|
|
${BUILD}/Graphic/View/FenetreSelectionEtu.class
|
|
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Graphic/Controller/ObservateurModifGroupe.java
|
|
|
|
${BUILD}/Graphic/Controller/ObservateurChangeGroupe.class : ${SRC}/Graphic/Controller/ObservateurChangeGroupe.java
|
|
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Graphic/Controller/ObservateurChangeGroupe.java
|
|
|
|
${BUILD}/Graphic/Controller/SelecteurEtudiant.class : ${SRC}/Graphic/Controller/SelecteurEtudiant.java
|
|
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/Graphic/Controller/SelecteurEtudiant.java
|
|
##....
|
|
|
|
## TEST ##
|
|
|
|
${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}/Graphic/Model.class
|
|
${JAVAC} -Xlint:deprecation ${JAVAC_OPTIONS} ${SRC}/Test/TestTexteMNP.java
|
|
|
|
# ## JARS ##
|
|
|
|
${JAR_MNP} : ${BUILD}/Test/TestTexteMNP.class
|
|
${JAR} cfme ${JAR_MNP} Manifest.txt fr/iutfbleau/projetIHM2022FI2/Test/TestTexteMNP res/ -C build fr
|