doc/Makefile.am
author Peter Kovacs <kpeter@inf.elte.hu>
Thu, 09 Oct 2008 16:47:01 +0200
changeset 316 689f24ee83e6
parent 270 58b0b3c0015e
child 317 a0ab96ad65fe
permissions -rw-r--r--
Updated doxygen options to version 1.5.7.1
     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/named-param.dox \
    11 	doc/namespaces.dox \
    12 	doc/html \
    13 	doc/CMakeLists.txt
    14 
    15 DOC_EPS_IMAGES18 = \
    16 	nodeshape_0.eps \
    17 	nodeshape_1.eps \
    18 	nodeshape_2.eps \
    19 	nodeshape_3.eps \
    20 	nodeshape_4.eps
    21 
    22 DOC_EPS_IMAGES = \
    23 	$(DOC_EPS_IMAGES18)
    24 
    25 DOC_PNG_IMAGES = \
    26 	$(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png)
    27 
    28 EXTRA_DIST += $(DOC_EPS_IMAGES:%=doc/images/%)
    29 
    30 doc/html:
    31 	$(MAKE) $(AM_MAKEFLAGS) html
    32 
    33 GS_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 
    46 html-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 
    58 clean-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 
    64 update-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 
    69 install-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 
    78 uninstall-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