doc/Makefile.am
author Balazs Dezso <deba@inf.elte.hu>
Tue, 30 Sep 2008 20:53:18 +0200
changeset 290 f6899946c1ac
parent 227 33f8d69e642a
child 305 069f27927ba9
child 316 689f24ee83e6
permissions -rw-r--r--
Simplifying exceptions

- Using asserts instead of exceptions for unitialized parameters
- Only the IO exceptions are used in the lemon
- DataFormatError is renamed to FormatError
- The IoError is used for file access errors
     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/named-param.dox \
    10 	doc/namespaces.dox \
    11 	doc/html \
    12 	doc/CMakeLists.txt
    13 
    14 DOC_EPS_IMAGES18 = \
    15 	nodeshape_0.eps \
    16 	nodeshape_1.eps \
    17 	nodeshape_2.eps \
    18 	nodeshape_3.eps \
    19 	nodeshape_4.eps
    20 
    21 DOC_EPS_IMAGES = \
    22 	$(DOC_EPS_IMAGES18)
    23 
    24 DOC_PNG_IMAGES = \
    25 	$(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png)
    26 
    27 EXTRA_DIST += $(DOC_EPS_IMAGES:%=doc/images/%)
    28 
    29 doc/html:
    30 	$(MAKE) $(AM_MAKEFLAGS) html
    31 
    32 GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
    33 
    34 $(DOC_EPS_IMAGES18:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
    35 	-mkdir doc/gen-images
    36 	if test ${gs_found} = yes; then \
    37 	  $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<; \
    38 	else \
    39 	  echo; \
    40 	  echo "Ghostscript not found."; \
    41 	  echo; \
    42 	  exit 1; \
    43 	fi
    44 
    45 html-local: $(DOC_PNG_IMAGES)
    46 	if test ${doxygen_found} = yes; then \
    47 	  cd doc; \
    48 	  doxygen Doxyfile; \
    49 	  cd ..; \
    50 	else \
    51 	  echo; \
    52 	  echo "Doxygen not found."; \
    53 	  echo; \
    54 	  exit 1; \
    55 	fi
    56 
    57 clean-local:
    58 	-rm -rf doc/html
    59 	-rm -f doc/doxygen.log
    60 	-rm -f $(DOC_PNG_IMAGES)
    61 	-rm -rf doc/gen-images
    62 
    63 update-external-tags:
    64 	wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \
    65 	mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \
    66 	rm doc/libstdc++.tag.tmp
    67 
    68 install-html-local: doc/html
    69 	@$(NORMAL_INSTALL)
    70 	$(mkinstalldirs) $(DESTDIR)$(htmldir)/docs
    71 	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
    72 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    73 	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f"; \
    74 	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f; \
    75 	done
    76 
    77 uninstall-local:
    78 	@$(NORMAL_UNINSTALL)
    79 	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
    80 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    81 	  echo " rm -f $(DESTDIR)$(htmldir)/docs/$$f"; \
    82 	  rm -f $(DESTDIR)$(htmldir)/docs/$$f; \
    83 	done
    84 
    85 .PHONY: update-external-tags