doc/Makefile.am
changeset 708 994c7df296c9
parent 661 8b0df68370a4
child 777 63fd58460c39
     1.1 --- a/doc/Makefile.am	Fri Nov 13 12:33:33 2009 +0100
     1.2 +++ b/doc/Makefile.am	Thu Dec 10 17:05:35 2009 +0100
     1.3 @@ -8,20 +8,31 @@
     1.4  	doc/license.dox \
     1.5  	doc/mainpage.dox \
     1.6  	doc/migration.dox \
     1.7 +	doc/min_cost_flow.dox \
     1.8  	doc/named-param.dox \
     1.9  	doc/namespaces.dox \
    1.10  	doc/html \
    1.11  	doc/CMakeLists.txt
    1.12  
    1.13  DOC_EPS_IMAGES18 = \
    1.14 +	grid_graph.eps \
    1.15  	nodeshape_0.eps \
    1.16  	nodeshape_1.eps \
    1.17  	nodeshape_2.eps \
    1.18  	nodeshape_3.eps \
    1.19  	nodeshape_4.eps
    1.20  
    1.21 +DOC_EPS_IMAGES27 = \
    1.22 +	bipartite_matching.eps \
    1.23 +	bipartite_partitions.eps \
    1.24 +	connected_components.eps \
    1.25 +	edge_biconnected_components.eps \
    1.26 +	node_biconnected_components.eps \
    1.27 +	strongly_connected_components.eps
    1.28 +
    1.29  DOC_EPS_IMAGES = \
    1.30 -	$(DOC_EPS_IMAGES18)
    1.31 +	$(DOC_EPS_IMAGES18) \
    1.32 +	$(DOC_EPS_IMAGES27)
    1.33  
    1.34  DOC_PNG_IMAGES = \
    1.35  	$(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png)
    1.36 @@ -44,6 +55,17 @@
    1.37  	  exit 1; \
    1.38  	fi
    1.39  
    1.40 +$(DOC_EPS_IMAGES27:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
    1.41 +	-mkdir doc/gen-images
    1.42 +	if test ${gs_found} = yes; then \
    1.43 +	  $(GS_COMMAND) -sDEVICE=pngalpha -r27 -sOutputFile=$@ $<; \
    1.44 +	else \
    1.45 +	  echo; \
    1.46 +	  echo "Ghostscript not found."; \
    1.47 +	  echo; \
    1.48 +	  exit 1; \
    1.49 +	fi
    1.50 +
    1.51  html-local: $(DOC_PNG_IMAGES)
    1.52  	if test ${doxygen_found} = yes; then \
    1.53  	  cd doc; \
    1.54 @@ -69,19 +91,19 @@
    1.55  
    1.56  install-html-local: doc/html
    1.57  	@$(NORMAL_INSTALL)
    1.58 -	$(mkinstalldirs) $(DESTDIR)$(htmldir)/docs
    1.59 +	$(mkinstalldirs) $(DESTDIR)$(htmldir)/html
    1.60  	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
    1.61  	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    1.62 -	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f"; \
    1.63 -	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f; \
    1.64 +	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/html/$$f"; \
    1.65 +	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/html/$$f; \
    1.66  	done
    1.67  
    1.68  uninstall-local:
    1.69  	@$(NORMAL_UNINSTALL)
    1.70  	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
    1.71  	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    1.72 -	  echo " rm -f $(DESTDIR)$(htmldir)/docs/$$f"; \
    1.73 -	  rm -f $(DESTDIR)$(htmldir)/docs/$$f; \
    1.74 +	  echo " rm -f $(DESTDIR)$(htmldir)/html/$$f"; \
    1.75 +	  rm -f $(DESTDIR)$(htmldir)/html/$$f; \
    1.76  	done
    1.77  
    1.78  .PHONY: update-external-tags