doc/Makefile.am
author ladanyi
Tue, 04 Jul 2006 18:54:34 +0000
branchlemon-1.0
changeset 2651 184dcd8c07d0
parent 2649 68eaa3e9029d
child 2652 6c02e1ecaa84
permissions -rw-r--r--
Distribute Doxyfile.in and lemon.pc.in.
     1 htmldir = $(datadir)/doc/$(PACKAGE)/html
     2 
     3 EXTRA_DIST += \
     4 	doc/html \
     5 	doc/Doxyfile.in
     6 ##	doc/icons/geom/ftv2doc.png \
     7 ##	doc/icons/geom/ftv2folderclosed.png \
     8 ##	doc/icons/geom/ftv2folderopen.png \
     9 ##	doc/coding_style.dox \
    10 ##	doc/developers_interface.dox \
    11 ##	doc/dirs.dox \
    12 ##	doc/getstart.dox \
    13 ##	doc/graph-adaptors.dox \
    14 ##	doc/graph_io.dox \
    15 ##	doc/graphs.dox \
    16 ##	doc/groups.dox \
    17 ##	doc/license.dox \
    18 ##	doc/mainpage.dox \
    19 ##	doc/maps.dox \
    20 ##	doc/named-param.dox \
    21 ##	doc/namespaces.dox \
    22 ##	doc/quicktour.dox \
    23 ##	doc/ugraphs.dox
    24 
    25 doc:
    26 	if test ${doxygen_found} = yes; then \
    27 	  cd doc; \
    28 	  doxygen Doxyfile; \
    29 	  cd ..; \
    30 	  cp $(srcdir)/doc/icons/geom/ftv2* doc/html; \
    31 	fi
    32 
    33 doc-clean:
    34 	if test ${doxygen_found} = yes; then \
    35 	  rm -rf doc/html; \
    36 	  rm -f doc/doxygen.log; \
    37 	  cd doc; \
    38 	  doxygen Doxyfile; \
    39 	  cd ..; \
    40 	  cp $(srcdir)/doc/icons/geom/ftv2* doc/html; \
    41 	fi
    42 
    43 clean-local:
    44 	-rm -rf doc/html
    45 	-rm -f doc/doxygen.log
    46 
    47 doc/html:
    48 	$(MAKE) $(AM_MAKEFLAGS) doc-clean
    49 
    50 install-data-local: doc/html
    51 	@$(NORMAL_INSTALL)
    52 	$(mkinstalldirs) $(DESTDIR)$(htmldir)
    53 	@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 \
    54 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    55 	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f"; \
    56 	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f; \
    57 	done
    58 
    59 uninstall-local: doc/html
    60 	@$(NORMAL_UNINSTALL)
    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 " rm -f $(DESTDIR)$(htmldir)/$$f"; \
    64 	  rm -f $(DESTDIR)$(htmldir)/$$f; \
    65 	done
    66 
    67 .PHONY: doc doc-clean