doc/Makefile.am
author Peter Kovacs <kpeter@inf.elte.hu>
Mon, 11 May 2009 16:42:42 +0200
changeset 705 ebdcc68fe79e
parent 633 7c12061bd271
child 710 8b0df68370a4
permissions -rw-r--r--
Change the explanation of the acronym LEMON (#289)
     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 	grid_graph.eps \
    18 	nodeshape_0.eps \
    19 	nodeshape_1.eps \
    20 	nodeshape_2.eps \
    21 	nodeshape_3.eps \
    22 	nodeshape_4.eps
    23 
    24 DOC_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 
    32 DOC_EPS_IMAGES = \
    33 	$(DOC_EPS_IMAGES18) \
    34 	$(DOC_EPS_IMAGES27)
    35 
    36 DOC_PNG_IMAGES = \
    37 	$(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png)
    38 
    39 EXTRA_DIST += $(DOC_EPS_IMAGES:%=doc/images/%)
    40 
    41 doc/html:
    42 	$(MAKE) $(AM_MAKEFLAGS) html
    43 
    44 GS_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 
    68 html-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 
    80 clean-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 
    86 update-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 
    91 install-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 
   100 uninstall-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