doc/Makefile.am
author Peter Kovacs <kpeter@inf.elte.hu>
Wed, 15 Apr 2009 04:26:13 +0200
changeset 586 7c12061bd271
parent 337 560e4b6d020d
child 587 114920bd21ef
permissions -rw-r--r--
Add images + fixes in the doc of connectivity tools (#262)
     1 EXTRA_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 
    16 DOC_EPS_IMAGES18 = \
    17 	bipartite_matching.eps \
    18 	bipartite_partitions.eps \
    19 	connected_components.eps \
    20 	edge_biconnected_components.eps \
    21 	grid_graph.eps \
    22 	node_biconnected_components.eps \
    23 	nodeshape_0.eps \
    24 	nodeshape_1.eps \
    25 	nodeshape_2.eps \
    26 	nodeshape_3.eps \
    27 	nodeshape_4.eps \
    28 	strongly_connected_components.eps
    29 
    30 DOC_EPS_IMAGES = \
    31 	$(DOC_EPS_IMAGES18)
    32 
    33 DOC_PNG_IMAGES = \
    34 	$(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png)
    35 
    36 EXTRA_DIST += $(DOC_EPS_IMAGES:%=doc/images/%)
    37 
    38 doc/html:
    39 	$(MAKE) $(AM_MAKEFLAGS) html
    40 
    41 GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
    42 
    43 $(DOC_EPS_IMAGES18:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
    44 	-mkdir doc/gen-images
    45 	if test ${gs_found} = yes; then \
    46 	  $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<; \
    47 	else \
    48 	  echo; \
    49 	  echo "Ghostscript not found."; \
    50 	  echo; \
    51 	  exit 1; \
    52 	fi
    53 
    54 html-local: $(DOC_PNG_IMAGES)
    55 	if test ${doxygen_found} = yes; then \
    56 	  cd doc; \
    57 	  doxygen Doxyfile; \
    58 	  cd ..; \
    59 	else \
    60 	  echo; \
    61 	  echo "Doxygen not found."; \
    62 	  echo; \
    63 	  exit 1; \
    64 	fi
    65 
    66 clean-local:
    67 	-rm -rf doc/html
    68 	-rm -f doc/doxygen.log
    69 	-rm -f $(DOC_PNG_IMAGES)
    70 	-rm -rf doc/gen-images
    71 
    72 update-external-tags:
    73 	wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \
    74 	mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \
    75 	rm doc/libstdc++.tag.tmp
    76 
    77 install-html-local: doc/html
    78 	@$(NORMAL_INSTALL)
    79 	$(mkinstalldirs) $(DESTDIR)$(htmldir)/docs
    80 	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
    81 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    82 	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f"; \
    83 	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f; \
    84 	done
    85 
    86 uninstall-local:
    87 	@$(NORMAL_UNINSTALL)
    88 	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
    89 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    90 	  echo " rm -f $(DESTDIR)$(htmldir)/docs/$$f"; \
    91 	  rm -f $(DESTDIR)$(htmldir)/docs/$$f; \
    92 	done
    93 
    94 .PHONY: update-external-tags