Files
SAE32_2025/makefile
T
Diallo-VM-fbleau 3e69ce9d43 make file
2025-12-18 10:02:19 +01:00

59 lines
1004 B
Makefile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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)