make file

This commit is contained in:
Diallo-VM-fbleau
2025-12-18 10:02:19 +01:00
parent a125146bd0
commit 3e69ce9d43
9 changed files with 74 additions and 3 deletions
+3 -3
View File
@@ -66,7 +66,7 @@ Objectif : Mise en place des fondations techniques
| Nom du fichier | Rôle | US |
|----------------|-------|----|
| `ConverterController.java` | Contrôleur du convertisseur | US-U5, US-D3..D6, US-P1..P3 |
| `Main.java` | Lancement du convertisseur | — |
| `Convertisseur.java` | Lancement du convertisseur | — |
---
### Résultat attendu Sprint 1
@@ -178,11 +178,11 @@ Objectif : Finalisation complète + livrable final
|----------------|-------|
| `Makefile` | Compilation + génération `.jar` |
### `/doc` (optionnel)
### `/doc`
| Nom du fichier | Rôle |
|----------------|-------|
| `rapport.pdf` | Livrable final |
| `uml.puml` | Sources de diagrammes |
| `UML/___.plantuml` | Sources de diagrammes |
---
Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

Before

Width:  |  Height:  |  Size: 174 KiB

After

Width:  |  Height:  |  Size: 174 KiB

+58
View File
@@ -0,0 +1,58 @@
# Outils
JAVAC = javac
JAVA = java
JAVADOC = javadoc
# Dossiers
SRC = src
BIN = build
DOC = docjava
LIB = lib/
# Package
PKG_PATH = fr/iutfbleau/sae
# Points dentrée
MAIN_CONVERTER = fr.iutfbleau.sae.Convertisseur
MAIN_VIEWER = fr.iutfbleau.sae.Viewer
# Séparateur classpath
ifeq ($(OS),Windows_NT)
SEP = ;
else
SEP = :
endif
# Règle par défaut
all: \
$(BIN)/$(PKG_PATH)/Convertisseur.class
$(BIN)/$(PKG_PATH)/Viewer.class
# Compilation
$(BIN)/$(PKG_PATH)/Convertisseur.class: $(BIN)
$(JAVAC) -d $(BIN) $(SRC)/$(PKG_PATH)/Convertisseur.java
$(BIN)/$(PKG_PATH)/Viewer.class: $(BIN)
$(JAVAC) -d $(BIN) $(SRC)/$(PKG_PATH)/Viewer.java
# Dossiers
$(BIN):
mkdir -p $(BIN)
$(DOC):
mkdir -p $(DOC)
# Exécution
run-conv: all
$(JAVA) -cp $(BIN)$(SEP)$(LIB)* $(MAIN_CONVERTER)
run-view: all
$(JAVA) -cp $(BIN)$(SEP)$(LIB)* $(MAIN_VIEWER)
# Documentation
doc: $(DOC)
$(JAVADOC) -d $(DOC) $(SRC)/fr/iutfbleau/sae/**/*.java
# Nettoyage
clean:
rm -rf $(BIN) $(DOC)
+6
View File
@@ -0,0 +1,6 @@
package fr.iutfbleau.sae;
public class Convertisseur {
public static void main(String[] args) {
System.out.println("DLKSLDKSLKDSLKSLKSLDKSLDKLSdkslkdl");
}
}
+7
View File
@@ -0,0 +1,7 @@
package fr.iutfbleau.sae;
public class Viewer {
public static void main(String[] args) {
System.out.println("dqkdjqkdjqkdjqkdjqkdj");
}
}