Logo AND Algorithmique Numérique Distribuée

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