1 | EXTRA_DIST += \ |
---|
2 | doc/Doxyfile.in \ |
---|
3 | doc/coding_style.dox \ |
---|
4 | doc/dirs.dox \ |
---|
5 | doc/groups.dox \ |
---|
6 | doc/license.dox \ |
---|
7 | doc/mainpage.dox \ |
---|
8 | doc/namespaces.dox \ |
---|
9 | doc/html |
---|
10 | |
---|
11 | DOC_EPS_IMAGES18 = \ |
---|
12 | nodeshape_0.eps \ |
---|
13 | nodeshape_1.eps \ |
---|
14 | nodeshape_2.eps \ |
---|
15 | nodeshape_3.eps \ |
---|
16 | nodeshape_4.eps |
---|
17 | |
---|
18 | DOC_EPS_IMAGES = \ |
---|
19 | $(DOC_EPS_IMAGES18) |
---|
20 | |
---|
21 | DOC_PNG_IMAGES = \ |
---|
22 | $(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png) |
---|
23 | |
---|
24 | EXTRA_DIST += $(DOC_EPS_IMAGES:%=doc/images/%) |
---|
25 | |
---|
26 | doc/html: |
---|
27 | $(MAKE) $(AM_MAKEFLAGS) html |
---|
28 | |
---|
29 | GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 |
---|
30 | |
---|
31 | $(DOC_EPS_IMAGES18:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps |
---|
32 | -mkdir doc/gen-images |
---|
33 | if test ${gs_found} = yes; then \ |
---|
34 | $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<; \ |
---|
35 | else \ |
---|
36 | echo; \ |
---|
37 | echo "Ghostscript not found."; \ |
---|
38 | echo; \ |
---|
39 | exit 1; \ |
---|
40 | fi |
---|
41 | |
---|
42 | html-local: $(DOC_PNG_IMAGES) |
---|
43 | if test ${doxygen_found} = yes; then \ |
---|
44 | cd doc; \ |
---|
45 | doxygen Doxyfile; \ |
---|
46 | cd ..; \ |
---|
47 | else \ |
---|
48 | echo; \ |
---|
49 | echo "Doxygen not found."; \ |
---|
50 | echo; \ |
---|
51 | exit 1; \ |
---|
52 | fi |
---|
53 | |
---|
54 | clean-local: |
---|
55 | -rm -rf doc/html |
---|
56 | -rm -f doc/doxygen.log |
---|
57 | -rm -f $(DOC_PNG_IMAGES) |
---|
58 | -rm -rf doc/gen-images |
---|
59 | |
---|
60 | update-external-tags: |
---|
61 | wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \ |
---|
62 | mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \ |
---|
63 | rm doc/libstdc++.tag.tmp |
---|
64 | |
---|
65 | install-html-local: doc/html |
---|
66 | @$(NORMAL_INSTALL) |
---|
67 | $(mkinstalldirs) $(DESTDIR)$(htmldir)/docs |
---|
68 | for p in doc/html/*.{html,css,png,map,gif,tag} ; do \ |
---|
69 | f="`echo $$p | sed -e 's|^.*/||'`"; \ |
---|
70 | echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f"; \ |
---|
71 | $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f; \ |
---|
72 | done |
---|
73 | |
---|
74 | uninstall-local: |
---|
75 | @$(NORMAL_UNINSTALL) |
---|
76 | for p in doc/html/*.{html,css,png,map,gif,tag} ; do \ |
---|
77 | f="`echo $$p | sed -e 's|^.*/||'`"; \ |
---|
78 | echo " rm -f $(DESTDIR)$(htmldir)/docs/$$f"; \ |
---|
79 | rm -f $(DESTDIR)$(htmldir)/docs/$$f; \ |
---|
80 | done |
---|
81 | |
---|
82 | .PHONY: update-external-tags |
---|