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