doc/Makefile.am
author Alpar Juttner <alpar@cs.elte.hu>
Fri, 05 Aug 2011 00:17:29 +0200
branch1.0
changeset 1078 c59bdcc8e33e
parent 316 689f24ee83e6
parent 306 2bf7c645d5a6
child 349 560e4b6d020d
permissions -rw-r--r--
Unify sources
     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 	nodeshape_0.eps \
    18 	nodeshape_1.eps \
    19 	nodeshape_2.eps \
    20 	nodeshape_3.eps \
    21 	nodeshape_4.eps
    22 
    23 DOC_EPS_IMAGES = \
    24 	$(DOC_EPS_IMAGES18)
    25 
    26 DOC_PNG_IMAGES = \
    27 	$(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png)
    28 
    29 EXTRA_DIST += $(DOC_EPS_IMAGES:%=doc/images/%)
    30 
    31 doc/html:
    32 	$(MAKE) $(AM_MAKEFLAGS) html
    33 
    34 GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
    35 
    36 $(DOC_EPS_IMAGES18:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
    37 	-mkdir doc/gen-images
    38 	if test ${gs_found} = yes; then \
    39 	  $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<; \
    40 	else \
    41 	  echo; \
    42 	  echo "Ghostscript not found."; \
    43 	  echo; \
    44 	  exit 1; \
    45 	fi
    46 
    47 html-local: $(DOC_PNG_IMAGES)
    48 	if test ${doxygen_found} = yes; then \
    49 	  cd doc; \
    50 	  doxygen Doxyfile; \
    51 	  cd ..; \
    52 	else \
    53 	  echo; \
    54 	  echo "Doxygen not found."; \
    55 	  echo; \
    56 	  exit 1; \
    57 	fi
    58 
    59 clean-local:
    60 	-rm -rf doc/html
    61 	-rm -f doc/doxygen.log
    62 	-rm -f $(DOC_PNG_IMAGES)
    63 	-rm -rf doc/gen-images
    64 
    65 update-external-tags:
    66 	wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \
    67 	mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \
    68 	rm doc/libstdc++.tag.tmp
    69 
    70 install-html-local: doc/html
    71 	@$(NORMAL_INSTALL)
    72 	$(mkinstalldirs) $(DESTDIR)$(htmldir)/docs
    73 	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
    74 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    75 	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f"; \
    76 	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f; \
    77 	done
    78 
    79 uninstall-local:
    80 	@$(NORMAL_UNINSTALL)
    81 	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
    82 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    83 	  echo " rm -f $(DESTDIR)$(htmldir)/docs/$$f"; \
    84 	  rm -f $(DESTDIR)$(htmldir)/docs/$$f; \
    85 	done
    86 
    87 .PHONY: update-external-tags