doc/Makefile.am
author Alpar Juttner <alpar@cs.elte.hu>
Thu, 26 Feb 2009 07:39:16 +0000
changeset 540 9db62975c32b
parent 317 a0ab96ad65fe
parent 335 160bf92c7cdc
child 586 7c12061bd271
permissions -rw-r--r--
Fix newSolver()/cloneSolver() API in LP tools + doc improvements (#230)
- More logical structure for newSolver()/cloneSolver()
- Fix compilation problem with gcc-3.3
- Doc improvements
     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 	grid_graph.eps \
    18 	nodeshape_0.eps \
    19 	nodeshape_1.eps \
    20 	nodeshape_2.eps \
    21 	nodeshape_3.eps \
    22 	nodeshape_4.eps
    23 
    24 DOC_EPS_IMAGES = \
    25 	$(DOC_EPS_IMAGES18)
    26 
    27 DOC_PNG_IMAGES = \
    28 	$(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png)
    29 
    30 EXTRA_DIST += $(DOC_EPS_IMAGES:%=doc/images/%)
    31 
    32 doc/html:
    33 	$(MAKE) $(AM_MAKEFLAGS) html
    34 
    35 GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
    36 
    37 $(DOC_EPS_IMAGES18:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
    38 	-mkdir doc/gen-images
    39 	if test ${gs_found} = yes; then \
    40 	  $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<; \
    41 	else \
    42 	  echo; \
    43 	  echo "Ghostscript not found."; \
    44 	  echo; \
    45 	  exit 1; \
    46 	fi
    47 
    48 html-local: $(DOC_PNG_IMAGES)
    49 	if test ${doxygen_found} = yes; then \
    50 	  cd doc; \
    51 	  doxygen Doxyfile; \
    52 	  cd ..; \
    53 	else \
    54 	  echo; \
    55 	  echo "Doxygen not found."; \
    56 	  echo; \
    57 	  exit 1; \
    58 	fi
    59 
    60 clean-local:
    61 	-rm -rf doc/html
    62 	-rm -f doc/doxygen.log
    63 	-rm -f $(DOC_PNG_IMAGES)
    64 	-rm -rf doc/gen-images
    65 
    66 update-external-tags:
    67 	wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \
    68 	mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \
    69 	rm doc/libstdc++.tag.tmp
    70 
    71 install-html-local: doc/html
    72 	@$(NORMAL_INSTALL)
    73 	$(mkinstalldirs) $(DESTDIR)$(htmldir)/docs
    74 	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
    75 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    76 	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f"; \
    77 	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/docs/$$f; \
    78 	done
    79 
    80 uninstall-local:
    81 	@$(NORMAL_UNINSTALL)
    82 	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
    83 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    84 	  echo " rm -f $(DESTDIR)$(htmldir)/docs/$$f"; \
    85 	  rm -f $(DESTDIR)$(htmldir)/docs/$$f; \
    86 	done
    87 
    88 .PHONY: update-external-tags