Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add proper Makefile for Graphlib.
[graphlib_java.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..cf0d983
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,27 @@
+include ../subdefs.mk
+
+DEST = $(HOME)/public_html/enseignement/Permanent/AlgoProg/tp/graph
+
+SRC = DrawingWindow.java
+EXAMPLES = Hello.java Exemple1.java Exemple2.java Exemple3.java
+
+EXAMPLES_CLASS = $(EXAMPLES:%.java=%.class)
+
+all:
+       $(MAKE) -f ../Makefile.generic $(EXAMPLES_CLASS)
+       $(RM) -r html
+       javadoc -author -version -notree -nodeprecated -nohelp \
+               -d html/ $(SRC)
+
+clean:
+       $(RM) DrawingWindow*.class
+       $(RM) $(EXAMPLES_CLASS)
+       $(RM) -r html/
+
+realclean: clean
+
+install: all
+       $(RM) -r $(DEST)
+       $(INSTALL) -C -m 755 -d $(DEST)
+       $(INSTALL) -C -m 644 $(SRC) $(EXAMPLES) $(DEST)
+       $(INSTALL) -C -m 644 html/* $(DEST)