COIN-OR::LEMON - Graph Library

source: lemon/doc/Makefile.am @ 306:2bf7c645d5a6

Last change on this file since 306:2bf7c645d5a6 was 306:2bf7c645d5a6, checked in by Peter Kovacs <kpeter@…>, 16 years ago

Improvements in the migration script and guide (ticket #157)

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