Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
a3060bf6054e5df2fc4f56f8117924a8d32e93ca
[graphlib_java.git] / Makefile
1 include ../subdefs.mk
2
3 DEST = $(HOME)/public_html/enseignement/Permanent/AlgoProg/tp/graph
4
5 SRC = DrawingWindow.java
6 EXAMPLES = Hello.java Exemple1.java Exemple2.java Exemple3.java
7
8 SRC_CLASS = $(SRC:%.java=%.class)
9 EXAMPLES_CLASS = $(EXAMPLES:%.java=%.class)
10
11 all: html/index.html
12         $(MAKE) -f ../Makefile.generic $(SRC_CLASS) $(EXAMPLES_CLASS)
13         $(MAKE) -f ../Makefile.generic Test.class
14
15 html/index.html: $(SRC) overview.html
16         $(RM) -r html
17         javadoc -locale fr_FR -encoding utf-8 -docencoding utf-8 -charset utf-8 \
18                 -quiet -notree -nodeprecated -nohelp \
19                 -author -version -public \
20                 -overview overview.html \
21                 -doctitle "Petite bibliothèque graphique" \
22                 -windowtitle "Petite bibliothèque graphique" \
23                 -d html/ $(SRC)
24
25 clean:
26         $(RM) DrawingWindow*.class
27         $(RM) Test.class
28         $(RM) $(EXAMPLES_CLASS)
29         $(RM) -r html/
30
31 realclean: clean
32
33 install: html/index.html
34         $(INSTALL) -C -m 755 -d $(DEST) $(DEST)/resources
35         $(INSTALL) -C -m 644 $(SRC) $(EXAMPLES) $(DEST)
36         $(INSTALL) -C -m 644 html/resources/* $(DEST)/resources
37         $(INSTALL) -C -m 644 html/*[.-]* $(DEST)