doc/Makefile.am
author deba
Wed, 06 Sep 2006 10:28:13 +0000
changeset 2204 5617107d27e9
parent 2127 1d43a276fc26
child 2216 1e45cdeea3cc
permissions -rw-r--r--
Some doc fix
     1 htmldir = $(datadir)/doc/$(PACKAGE)/html
     2 
     3 EXTRA_DIST += \
     4 	doc/Makefile \
     5 	doc/Doxyfile.in \
     6 	doc/html \
     7 	doc/icons/geom/ftv2doc.png \
     8 	doc/icons/geom/ftv2folderclosed.png \
     9 	doc/icons/geom/ftv2folderopen.png \
    10 	doc/algorithms.dox \
    11 	doc/coding_style.dox \
    12 	doc/developers_interface.dox \
    13 	doc/dirs.dox \
    14 	doc/getstart.dox \
    15 	doc/graph-adaptors.dox \
    16 	doc/graph_io.dox \
    17 	doc/graphs.dox \
    18 	doc/groups.dox \
    19 	doc/license.dox \
    20 	doc/mainpage.dox \
    21 	doc/maps.dox \
    22 	doc/maps1.dox \
    23 	doc/maps2.dox \
    24 	doc/named-param.dox \
    25 	doc/namespaces.dox \
    26 	doc/quicktour.dox \
    27 	doc/ugraphs.dox
    28 
    29 doc:
    30 	if test ${doxygen_found} = yes; then \
    31 	  cd doc; \
    32 	  doxygen Doxyfile; \
    33 	  cd ..; \
    34 	  cp $(srcdir)/doc/icons/geom/ftv2* doc/html; \
    35 	fi
    36 
    37 doc-clean:
    38 	if test ${doxygen_found} = yes; then \
    39 	  rm -rf doc/html; \
    40 	  rm -f doc/doxygen.log; \
    41 	  cd doc; \
    42 	  doxygen Doxyfile; \
    43 	  cd ..; \
    44 	  cp $(srcdir)/doc/icons/geom/ftv2* doc/html; \
    45 	fi
    46 
    47 clean-local:
    48 	-rm -rf doc/html
    49 	-rm -f doc/doxygen.log
    50 
    51 doc/html:
    52 	$(MAKE) $(AM_MAKEFLAGS) doc-clean
    53 
    54 if WANT_DOC
    55 
    56 install-data-local: doc/html
    57 	@$(NORMAL_INSTALL)
    58 	$(mkinstalldirs) $(DESTDIR)$(htmldir)
    59 	@dir='doc/html'; shopt -s nullglob; for p in $$dir/*.html $$dir/*.css $$dir/*.png $$dir/*.gif $$dir/*.dot $$dir/*.php $$dir/*.idx $$dir/*.tag ; do \
    60 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    61 	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f"; \
    62 	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f; \
    63 	done
    64 
    65 uninstall-local: doc/html
    66 	@$(NORMAL_UNINSTALL)
    67 	@dir='doc/html'; shopt -s nullglob; for p in $$dir/*.html $$dir/*.css $$dir/*.png $$dir/*.gif $$dir/*.dot $$dir/*.php $$dir/*.idx $$dir/*.tag ; do \
    68 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    69 	  echo " rm -f $(DESTDIR)$(htmldir)/$$f"; \
    70 	  rm -f $(DESTDIR)$(htmldir)/$$f; \
    71 	done
    72 
    73 endif WANT_DOC
    74 
    75 .PHONY: doc doc-clean