2021-10-06 21:23:51 +02:00
|
|
|
# COMMANDES #
|
|
|
|
JAVAC = javac
|
|
|
|
# note $$ to get a single shell $
|
|
|
|
JAVAC_OPTIONS = -d build -cp build:$$CLASSPATH -implicit:none
|
|
|
|
JAVA = java
|
|
|
|
JAR = jar
|
|
|
|
EXEC_JAR = ${JAVA} -jar
|
|
|
|
|
|
|
|
# CHEMINS RELATIFS
|
2022-10-26 15:32:48 +02:00
|
|
|
SRC = src/fr/iutfbleau/projetIHM2022FI2
|
|
|
|
BUILD = build/fr/iutfbleau/projetIHM2022FI2
|
|
|
|
DOC = doc/fr/iutfbleau/projetIHM2022FI2
|
2021-10-06 21:23:51 +02:00
|
|
|
|
|
|
|
# CHOIX NOMS
|
|
|
|
JAR_MNP = test-mnp.jar
|
|
|
|
|
|
|
|
# BUTS FACTICES #
|
2021-10-07 03:24:15 +02:00
|
|
|
.PHONY : run clean doc
|
2021-10-06 21:23:51 +02:00
|
|
|
|
|
|
|
# BUT PAR DEFAUT #
|
2021-10-07 03:24:15 +02:00
|
|
|
run : ${JAR_MNP}
|
|
|
|
${EXEC_JAR} ${JAR_MNP}
|
2021-10-06 21:23:51 +02:00
|
|
|
|
|
|
|
# AUTRE BUTS
|
2021-10-07 03:24:15 +02:00
|
|
|
doc :
|
2022-10-26 15:32:48 +02:00
|
|
|
javadoc -d doc src/fr/iutfbleau/projetIHM2022FI2/API/*.java src/fr/iutfbleau/projetIHM2022FI2/MNP/*.java
|
2021-10-07 03:24:15 +02:00
|
|
|
|
2021-10-06 21:23:51 +02:00
|
|
|
clean :
|
|
|
|
rm -rf ${BUILD}/* *.jar
|
|
|
|
|
|
|
|
|
|
|
|
# REGLES DE DEPENDANCE #
|
|
|
|
|
|
|
|
## API ##
|
2021-10-07 03:24:15 +02:00
|
|
|
${BUILD}/API/MonPrint.class : ${SRC}/API/MonPrint.java
|
|
|
|
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/API/MonPrint.java
|
|
|
|
|
2022-10-26 15:32:48 +02:00
|
|
|
${BUILD}/API/TypeGroupe.class : ${SRC}/API/TypeGroupe.java
|
|
|
|
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/API/TypeGroupe.java
|
2021-10-06 21:23:51 +02:00
|
|
|
|
2022-10-26 15:32:48 +02:00
|
|
|
${BUILD}/API/Groupe.class : ${SRC}/API/Groupe.java \
|
|
|
|
${BUILD}/API/TypeGroupe.class\
|
2021-10-07 03:24:15 +02:00
|
|
|
${BUILD}/API/MonPrint.class
|
2022-10-26 15:32:48 +02:00
|
|
|
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/API/Groupe.java
|
2021-10-06 21:23:51 +02:00
|
|
|
|
2022-10-26 15:32:48 +02:00
|
|
|
${BUILD}/API/Etudiant.class : ${SRC}/API/Etudiant.java \
|
2021-10-07 03:24:15 +02:00
|
|
|
${BUILD}/API/MonPrint.class
|
2022-10-26 15:32:48 +02:00
|
|
|
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/API/Etudiant.java
|
2021-10-06 21:23:51 +02:00
|
|
|
|
2022-10-26 15:32:48 +02:00
|
|
|
${BUILD}/API/Changement.class : ${SRC}/API/Changement.java \
|
|
|
|
${BUILD}/API/Etudiant.class \
|
|
|
|
${BUILD}/API/Groupe.class
|
|
|
|
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/API/Changement.java
|
2021-10-06 21:23:51 +02:00
|
|
|
|
2022-10-26 15:32:48 +02:00
|
|
|
${BUILD}/API/AbstractGroupeFactory.class : ${SRC}/API/AbstractGroupeFactory.java \
|
|
|
|
${BUILD}/API/Groupe.class \
|
|
|
|
${BUILD}/API/Etudiant.class
|
|
|
|
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/API/AbstractGroupeFactory.java
|
2021-10-06 21:23:51 +02:00
|
|
|
|
2022-10-26 15:32:48 +02:00
|
|
|
${BUILD}/API/AbstractChangementFactory.class : ${SRC}/API/AbstractChangementFactory.java \
|
|
|
|
${BUILD}/API/AbstractGroupeFactory.class \
|
|
|
|
${BUILD}/API/Changement.class
|
|
|
|
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/API/AbstractChangementFactory.java
|
2021-10-06 21:23:51 +02:00
|
|
|
|
|
|
|
## MNP ##
|
|
|
|
|
2022-10-26 15:32:48 +02:00
|
|
|
${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
|
|
|
|
|
2021-10-06 21:23:51 +02:00
|
|
|
|
2022-10-26 15:32:48 +02:00
|
|
|
${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
|
2021-10-06 21:23:51 +02:00
|
|
|
|
2022-10-26 15:32:48 +02:00
|
|
|
${BUILD}/MNP/AbstractGroupeFactoryNP.class : ${SRC}/MNP/AbstractGroupeFactoryNP.java \
|
|
|
|
${BUILD}/API/AbstractGroupeFactory.class
|
|
|
|
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MNP/AbstractGroupeFactoryNP.java
|
2021-10-06 21:23:51 +02:00
|
|
|
|
2022-10-26 15:32:48 +02:00
|
|
|
${BUILD}/MNP/AbstractChangementFactoryNP.class : ${SRC}/MNP/AbstractChangementFactoryNP.java \
|
|
|
|
${BUILD}/API/AbstractChangementFactory.class \
|
|
|
|
${BUILD}/API/Changement.class
|
|
|
|
${JAVAC} ${JAVAC_OPTIONS} ${SRC}/MNP/AbstractChangementFactoryNP.java
|
2021-10-07 03:24:15 +02:00
|
|
|
|
|
|
|
|
2022-10-26 15:32:48 +02:00
|
|
|
###...
|
2021-10-22 18:57:48 +02:00
|
|
|
|
2021-10-07 03:24:15 +02:00
|
|
|
## TEST ##
|
2021-10-06 21:23:51 +02:00
|
|
|
|
2021-10-07 03:24:15 +02:00
|
|
|
${BUILD}/Test/TestTexteMNP.class : ${SRC}/Test/TestTexteMNP.java \
|
2022-10-26 15:32:48 +02:00
|
|
|
${BUILD}/MNP/EtudiantNP.class \
|
|
|
|
${BUILD}/MNP/GroupeNP.class \
|
|
|
|
${BUILD}/MNP/ChangementNP.class \
|
|
|
|
${BUILD}/MNP/AbstractGroupeFactoryNP.class \
|
|
|
|
${BUILD}/MNP/AbstractChangementFactoryNP.class
|
2021-10-07 03:24:15 +02:00
|
|
|
${JAVAC} -Xlint:deprecation ${JAVAC_OPTIONS} ${SRC}/Test/TestTexteMNP.java
|
2021-10-06 21:23:51 +02:00
|
|
|
|
|
|
|
# ## JARS ##
|
|
|
|
|
2021-10-07 03:24:15 +02:00
|
|
|
${JAR_MNP} : ${BUILD}/Test/TestTexteMNP.class
|
2022-10-26 15:32:48 +02:00
|
|
|
${JAR} cvfe ${JAR_MNP} fr.iutfbleau.projetIHM2022FI2.Test.TestTexteMNP -C build fr
|
2021-10-06 21:23:51 +02:00
|
|
|
|