ladanyi@1: EXTRA_DIST += \ ladanyi@60: doc/Doxyfile.in \ kpeter@316: doc/DoxygenLayout.xml \ ladanyi@60: doc/coding_style.dox \ ladanyi@60: doc/dirs.dox \ ladanyi@60: doc/groups.dox \ alpar@156: doc/lgf.dox \ ladanyi@60: doc/license.dox \ ladanyi@60: doc/mainpage.dox \ kpeter@306: doc/migration.dox \ kpeter@710: doc/min_cost_flow.dox \ alpar@270: doc/named-param.dox \ ladanyi@60: doc/namespaces.dox \ ladanyi@227: doc/html \ ladanyi@227: doc/CMakeLists.txt ladanyi@1: ladanyi@153: DOC_EPS_IMAGES18 = \ alpar@634: grid_graph.eps \ alpar@634: nodeshape_0.eps \ alpar@634: nodeshape_1.eps \ alpar@634: nodeshape_2.eps \ alpar@634: nodeshape_3.eps \ alpar@634: nodeshape_4.eps alpar@634: alpar@634: DOC_EPS_IMAGES27 = \ kpeter@633: bipartite_matching.eps \ kpeter@633: bipartite_partitions.eps \ kpeter@633: connected_components.eps \ kpeter@633: edge_biconnected_components.eps \ alpar@943: matching.eps \ kpeter@633: node_biconnected_components.eps \ kpeter@895: planar.eps \ kpeter@633: strongly_connected_components.eps ladanyi@153: ladanyi@153: DOC_EPS_IMAGES = \ alpar@634: $(DOC_EPS_IMAGES18) \ alpar@634: $(DOC_EPS_IMAGES27) ladanyi@153: ladanyi@153: DOC_PNG_IMAGES = \ ladanyi@153: $(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png) ladanyi@153: ladanyi@153: EXTRA_DIST += $(DOC_EPS_IMAGES:%=doc/images/%) ladanyi@153: ladanyi@60: doc/html: ladanyi@60: $(MAKE) $(AM_MAKEFLAGS) html ladanyi@60: ladanyi@153: GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 ladanyi@153: ladanyi@153: $(DOC_EPS_IMAGES18:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps ladanyi@153: -mkdir doc/gen-images ladanyi@153: if test ${gs_found} = yes; then \ ladanyi@153: $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<; \ ladanyi@153: else \ ladanyi@153: echo; \ ladanyi@153: echo "Ghostscript not found."; \ ladanyi@153: echo; \ ladanyi@153: exit 1; \ ladanyi@153: fi ladanyi@153: alpar@634: $(DOC_EPS_IMAGES27:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps alpar@634: -mkdir doc/gen-images alpar@634: if test ${gs_found} = yes; then \ alpar@634: $(GS_COMMAND) -sDEVICE=pngalpha -r27 -sOutputFile=$@ $<; \ alpar@634: else \ alpar@634: echo; \ alpar@634: echo "Ghostscript not found."; \ alpar@634: echo; \ alpar@634: exit 1; \ alpar@634: fi alpar@634: alpar@791: references.dox: doc/references.bib alpar@791: if test ${python_found} = yes; then \ alpar@791: cd doc; \ alpar@791: python @abs_top_srcdir@/scripts/bib2dox.py @abs_top_builddir@/$< >$@; \ alpar@791: cd ..; \ alpar@791: else \ alpar@791: echo; \ alpar@791: echo "Python not found."; \ alpar@791: echo; \ alpar@791: exit 1; \ alpar@791: fi alpar@791: alpar@791: html-local: $(DOC_PNG_IMAGES) references.dox ladanyi@1: if test ${doxygen_found} = yes; then \ ladanyi@1: cd doc; \ ladanyi@1: doxygen Doxyfile; \ ladanyi@1: cd ..; \ ladanyi@60: else \ ladanyi@60: echo; \ ladanyi@60: echo "Doxygen not found."; \ ladanyi@60: echo; \ ladanyi@60: exit 1; \ ladanyi@1: fi ladanyi@1: ladanyi@1: clean-local: ladanyi@1: -rm -rf doc/html ladanyi@1: -rm -f doc/doxygen.log ladanyi@153: -rm -f $(DOC_PNG_IMAGES) ladanyi@153: -rm -rf doc/gen-images ladanyi@1: alpar@56: update-external-tags: alpar@56: wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \ alpar@56: mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \ alpar@56: rm doc/libstdc++.tag.tmp alpar@56: ladanyi@60: install-html-local: doc/html ladanyi@1: @$(NORMAL_INSTALL) ladanyi@720: $(mkinstalldirs) $(DESTDIR)$(htmldir)/html ladanyi@60: for p in doc/html/*.{html,css,png,map,gif,tag} ; do \ ladanyi@1: f="`echo $$p | sed -e 's|^.*/||'`"; \ ladanyi@720: echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/html/$$f"; \ ladanyi@720: $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/html/$$f; \ ladanyi@1: done ladanyi@1: ladanyi@60: uninstall-local: ladanyi@1: @$(NORMAL_UNINSTALL) ladanyi@60: for p in doc/html/*.{html,css,png,map,gif,tag} ; do \ ladanyi@1: f="`echo $$p | sed -e 's|^.*/||'`"; \ ladanyi@720: echo " rm -f $(DESTDIR)$(htmldir)/html/$$f"; \ ladanyi@720: rm -f $(DESTDIR)$(htmldir)/html/$$f; \ ladanyi@1: done ladanyi@1: ladanyi@60: .PHONY: update-external-tags