COIN-OR::LEMON - Graph Library

source: lemon/doc/Makefile.am @ 667:c3ce597c11ae

Last change on this file since 667:c3ce597c11ae was 634:114920bd21ef, checked in by Alpar Juttner <alpar@…>, 15 years ago

Rotate and enlarge some images (#262)

File size: 2.5 KB
Line 
1EXTRA_DIST += \
2        doc/Doxyfile.in \
3        doc/DoxygenLayout.xml \
4        doc/coding_style.dox \
5        doc/dirs.dox \
6        doc/groups.dox \
7        doc/lgf.dox \
8        doc/license.dox \
9        doc/mainpage.dox \
10        doc/migration.dox \
11        doc/named-param.dox \
12        doc/namespaces.dox \
13        doc/html \
14        doc/CMakeLists.txt
15
16DOC_EPS_IMAGES18 = \
17        grid_graph.eps \
18        nodeshape_0.eps \
19        nodeshape_1.eps \
20        nodeshape_2.eps \
21        nodeshape_3.eps \
22        nodeshape_4.eps
23
24DOC_EPS_IMAGES27 = \
25        bipartite_matching.eps \
26        bipartite_partitions.eps \
27        connected_components.eps \
28        edge_biconnected_components.eps \
29        node_biconnected_components.eps \
30        strongly_connected_components.eps
31
32DOC_EPS_IMAGES = \
33        $(DOC_EPS_IMAGES18) \
34        $(DOC_EPS_IMAGES27)
35
36DOC_PNG_IMAGES = \
37        $(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png)
38
39EXTRA_DIST += $(DOC_EPS_IMAGES:%=doc/images/%)
40
41doc/html:
42        $(MAKE) $(AM_MAKEFLAGS) html
43
44GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
45
46$(DOC_EPS_IMAGES18:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
47        -mkdir doc/gen-images
48        if test ${gs_found} = yes; then \
49          $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<; \
50        else \
51          echo; \
52          echo "Ghostscript not found."; \
53          echo; \
54          exit 1; \
55        fi
56
57$(DOC_EPS_IMAGES27:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
58        -mkdir doc/gen-images
59        if test ${gs_found} = yes; then \
60          $(GS_COMMAND) -sDEVICE=pngalpha -r27 -sOutputFile=$@ $<; \
61        else \
62          echo; \
63          echo "Ghostscript not found."; \
64          echo; \
65          exit 1; \
66        fi
67
68html-local: $(DOC_PNG_IMAGES)
69        if test ${doxygen_found} = yes; then \
70          cd doc; \
71          doxygen Doxyfile; \
72          cd ..; \
73        else \
74          echo; \
75          echo "Doxygen not found."; \
76          echo; \
77          exit 1; \
78        fi
79
80clean-local:
81        -rm -rf doc/html
82        -rm -f doc/doxygen.log
83        -rm -f $(DOC_PNG_IMAGES)
84        -rm -rf doc/gen-images
85
86update-external-tags:
87        wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \
88        mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \
89        rm doc/libstdc++.tag.tmp
90
91install-html-local: doc/html
92        @$(NORMAL_INSTALL)
93        $(mkinstalldirs) $(DESTDIR)$(htmldir)/docs
94        for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
95          f="`echo $$p | sed -e 's|^.*/||'`"; \
96          echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f"; \
97          $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f; \
98        done
99
100uninstall-local:
101        @$(NORMAL_UNINSTALL)
102        for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
103          f="`echo $$p | sed -e 's|^.*/||'`"; \
104          echo " rm -f $(DESTDIR)$(htmldir)/docs/$$f"; \
105          rm -f $(DESTDIR)$(htmldir)/docs/$$f; \
106        done
107
108.PHONY: update-external-tags
Note: See TracBrowser for help on using the repository browser.