doc/Makefile.am
author Peter Kovacs <kpeter@inf.elte.hu>
Sat, 30 Aug 2008 22:29:08 +0200
changeset 252 66644b9cd9eb
parent 156 e561aa7675de
child 270 58b0b3c0015e
child 347 160bf92c7cdc
permissions -rw-r--r--
Doc improvement for visitor classes (ticket #134)
     1 EXTRA_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/namespaces.dox \
    10 	doc/html \
    11 	doc/CMakeLists.txt
    12 
    13 DOC_EPS_IMAGES18 = \
    14 	nodeshape_0.eps \
    15 	nodeshape_1.eps \
    16 	nodeshape_2.eps \
    17 	nodeshape_3.eps \
    18 	nodeshape_4.eps
    19 
    20 DOC_EPS_IMAGES = \
    21 	$(DOC_EPS_IMAGES18)
    22 
    23 DOC_PNG_IMAGES = \
    24 	$(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png)
    25 
    26 EXTRA_DIST += $(DOC_EPS_IMAGES:%=doc/images/%)
    27 
    28 doc/html:
    29 	$(MAKE) $(AM_MAKEFLAGS) html
    30 
    31 GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
    32 
    33 $(DOC_EPS_IMAGES18:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
    34 	-mkdir doc/gen-images
    35 	if test ${gs_found} = yes; then \
    36 	  $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<; \
    37 	else \
    38 	  echo; \
    39 	  echo "Ghostscript not found."; \
    40 	  echo; \
    41 	  exit 1; \
    42 	fi
    43 
    44 html-local: $(DOC_PNG_IMAGES)
    45 	if test ${doxygen_found} = yes; then \
    46 	  cd doc; \
    47 	  doxygen Doxyfile; \
    48 	  cd ..; \
    49 	else \
    50 	  echo; \
    51 	  echo "Doxygen not found."; \
    52 	  echo; \
    53 	  exit 1; \
    54 	fi
    55 
    56 clean-local:
    57 	-rm -rf doc/html
    58 	-rm -f doc/doxygen.log
    59 	-rm -f $(DOC_PNG_IMAGES)
    60 	-rm -rf doc/gen-images
    61 
    62 update-external-tags:
    63 	wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \
    64 	mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \
    65 	rm doc/libstdc++.tag.tmp
    66 
    67 install-html-local: doc/html
    68 	@$(NORMAL_INSTALL)
    69 	$(mkinstalldirs) $(DESTDIR)$(htmldir)/docs
    70 	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
    71 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    72 	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f"; \
    73 	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f; \
    74 	done
    75 
    76 uninstall-local:
    77 	@$(NORMAL_UNINSTALL)
    78 	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
    79 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    80 	  echo " rm -f $(DESTDIR)$(htmldir)/docs/$$f"; \
    81 	  rm -f $(DESTDIR)$(htmldir)/docs/$$f; \
    82 	done
    83 
    84 .PHONY: update-external-tags