COIN-OR::LEMON - Graph Library

source: lemon/doc/Makefile.am @ 720:e4378da8cfcb

Last change on this file since 720:e4378da8cfcb was 720:e4378da8cfcb, checked in by Akos Ladanyi <ladanyi@…>, 10 years ago

Rename documentation install folder from 'docs' to 'html'

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