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