doc/Makefile.am
changeset 634 114920bd21ef
parent 633 7c12061bd271
child 710 8b0df68370a4
     1.1 --- a/doc/Makefile.am	Wed Apr 15 04:26:13 2009 +0200
     1.2 +++ b/doc/Makefile.am	Wed Apr 15 07:05:32 2009 +0100
     1.3 @@ -14,21 +14,24 @@
     1.4  	doc/CMakeLists.txt
     1.5  
     1.6  DOC_EPS_IMAGES18 = \
     1.7 +	grid_graph.eps \
     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_IMAGES27 = \
    1.15  	bipartite_matching.eps \
    1.16  	bipartite_partitions.eps \
    1.17  	connected_components.eps \
    1.18  	edge_biconnected_components.eps \
    1.19 -	grid_graph.eps \
    1.20  	node_biconnected_components.eps \
    1.21 -	nodeshape_0.eps \
    1.22 -	nodeshape_1.eps \
    1.23 -	nodeshape_2.eps \
    1.24 -	nodeshape_3.eps \
    1.25 -	nodeshape_4.eps \
    1.26  	strongly_connected_components.eps
    1.27  
    1.28  DOC_EPS_IMAGES = \
    1.29 -	$(DOC_EPS_IMAGES18)
    1.30 +	$(DOC_EPS_IMAGES18) \
    1.31 +	$(DOC_EPS_IMAGES27)
    1.32  
    1.33  DOC_PNG_IMAGES = \
    1.34  	$(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png)
    1.35 @@ -51,6 +54,17 @@
    1.36  	  exit 1; \
    1.37  	fi
    1.38  
    1.39 +$(DOC_EPS_IMAGES27:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
    1.40 +	-mkdir doc/gen-images
    1.41 +	if test ${gs_found} = yes; then \
    1.42 +	  $(GS_COMMAND) -sDEVICE=pngalpha -r27 -sOutputFile=$@ $<; \
    1.43 +	else \
    1.44 +	  echo; \
    1.45 +	  echo "Ghostscript not found."; \
    1.46 +	  echo; \
    1.47 +	  exit 1; \
    1.48 +	fi
    1.49 +
    1.50  html-local: $(DOC_PNG_IMAGES)
    1.51  	if test ${doxygen_found} = yes; then \
    1.52  	  cd doc; \