doc/Makefile.am
changeset 154 f4e4dbc1d467
parent 146 4b42aa24ce12
parent 153 976a014b3797
child 156 e561aa7675de
     1.1 --- a/doc/Makefile.am	Thu Apr 24 13:53:09 2008 +0100
     1.2 +++ b/doc/Makefile.am	Mon Apr 28 11:12:33 2008 +0100
     1.3 @@ -8,10 +8,38 @@
     1.4  	doc/namespaces.dox \
     1.5  	doc/html
     1.6  
     1.7 +DOC_EPS_IMAGES18 = \
     1.8 +	nodeshape_0.eps \
     1.9 +	nodeshape_1.eps \
    1.10 +	nodeshape_2.eps \
    1.11 +	nodeshape_3.eps \
    1.12 +	nodeshape_4.eps
    1.13 +
    1.14 +DOC_EPS_IMAGES = \
    1.15 +	$(DOC_EPS_IMAGES18)
    1.16 +
    1.17 +DOC_PNG_IMAGES = \
    1.18 +	$(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png)
    1.19 +
    1.20 +EXTRA_DIST += $(DOC_EPS_IMAGES:%=doc/images/%)
    1.21 +
    1.22  doc/html:
    1.23  	$(MAKE) $(AM_MAKEFLAGS) html
    1.24  
    1.25 -html-local:
    1.26 +GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
    1.27 +
    1.28 +$(DOC_EPS_IMAGES18:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
    1.29 +	-mkdir doc/gen-images
    1.30 +	if test ${gs_found} = yes; then \
    1.31 +	  $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<; \
    1.32 +	else \
    1.33 +	  echo; \
    1.34 +	  echo "Ghostscript not found."; \
    1.35 +	  echo; \
    1.36 +	  exit 1; \
    1.37 +	fi
    1.38 +
    1.39 +html-local: $(DOC_PNG_IMAGES)
    1.40  	if test ${doxygen_found} = yes; then \
    1.41  	  cd doc; \
    1.42  	  doxygen Doxyfile; \
    1.43 @@ -26,6 +54,8 @@
    1.44  clean-local:
    1.45  	-rm -rf doc/html
    1.46  	-rm -f doc/doxygen.log
    1.47 +	-rm -f $(DOC_PNG_IMAGES)
    1.48 +	-rm -rf doc/gen-images
    1.49  
    1.50  update-external-tags:
    1.51  	wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \