doc/Makefile.am
author deba
Tue, 31 Oct 2006 14:27:58 +0000
changeset 2282 9d7b12f83daa
parent 2196 09af6d2b683b
child 2485 88aa7870756a
permissions -rw-r--r--
Bug fixes
     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/lemon_file_format.dox \
    20 	doc/license.dox \
    21 	doc/mainpage.dox \
    22 	doc/maps.dox \
    23 	doc/maps1.dox \
    24 	doc/maps2.dox \
    25 	doc/named-param.dox \
    26 	doc/namespaces.dox \
    27 	doc/quicktour.dox \
    28 	doc/read_write_bg.dox \
    29 	doc/ugraphs.dox
    30 
    31 doc:
    32 	if test ${doxygen_found} = yes; then \
    33 	  cd doc; \
    34 	  doxygen Doxyfile; \
    35 	  cd ..; \
    36 	  cp $(srcdir)/doc/icons/geom/ftv2* doc/html; \
    37 	fi
    38 
    39 doc-clean:
    40 	if test ${doxygen_found} = yes; then \
    41 	  rm -rf doc/html; \
    42 	  rm -f doc/doxygen.log; \
    43 	  cd doc; \
    44 	  doxygen Doxyfile; \
    45 	  cd ..; \
    46 	  cp $(srcdir)/doc/icons/geom/ftv2* doc/html; \
    47 	fi
    48 
    49 clean-local:
    50 	-rm -rf doc/html
    51 	-rm -f doc/doxygen.log
    52 
    53 doc/html:
    54 	$(MAKE) $(AM_MAKEFLAGS) doc-clean
    55 
    56 if WANT_DOC
    57 
    58 install-data-local: doc/html
    59 	@$(NORMAL_INSTALL)
    60 	$(mkinstalldirs) $(DESTDIR)$(htmldir)
    61 	@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 \
    62 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    63 	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f"; \
    64 	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f; \
    65 	done
    66 
    67 uninstall-local: doc/html
    68 	@$(NORMAL_UNINSTALL)
    69 	@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 \
    70 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    71 	  echo " rm -f $(DESTDIR)$(htmldir)/$$f"; \
    72 	  rm -f $(DESTDIR)$(htmldir)/$$f; \
    73 	done
    74 
    75 endif WANT_DOC
    76 
    77 .PHONY: doc doc-clean