forked from menault/TD3_DEV51_Qualite_Algo
Base
This commit is contained in:
39
Makefile
Normal file
39
Makefile
Normal file
@@ -0,0 +1,39 @@
|
||||
# Projet Pendu : fichier Makefile
|
||||
# Compatibilité : Linux
|
||||
|
||||
# Règle par défaut
|
||||
all : Pendu
|
||||
|
||||
# Dossiers
|
||||
IN = src/
|
||||
OUT = bin/
|
||||
|
||||
# Mots-clés
|
||||
JC = javac
|
||||
JCFLAGS = -encoding UTF-8 -implicit:none -cp $(OUT) -d $(OUT)
|
||||
|
||||
CLASSFILES = Pendu.class # \
|
||||
|
||||
|
||||
# Dépendances
|
||||
$(OUT)Pendu.class : $(IN)Pendu.java # $(OUT)Fichier.class $(OUT)Cible.class $(OUT)Systeme.class
|
||||
$(JC) $(JCFLAGS) $<
|
||||
|
||||
|
||||
|
||||
# Commandes
|
||||
Pendu : $(OUT)Pendu.class
|
||||
|
||||
jar : $(OUT)Pendu.class
|
||||
jar -cfe Pendu.jar Pendu -C $(OUT) .
|
||||
|
||||
clean :
|
||||
-rm -f $(OUT)*.class
|
||||
-rm -f Pendu.jar
|
||||
|
||||
help : #(à implémenter plus tard)
|
||||
|
||||
# Buts factices
|
||||
.PHONY : all clean #(pour les cibles qui sont des commandes)
|
||||
|
||||
# Bug : gestion des chemins dans jar ?
|
||||
Reference in New Issue
Block a user