doc/Makefile.am
changeset 2114 677ea6c8169a
parent 2071 00c4ce4f4170
child 2118 54350d5c316a
equal deleted inserted replaced
17:c19e81a9ce4a 18:b9814649de69
     1 htmldir = $(datadir)/doc/$(PACKAGE)/html
     1 htmldir = $(datadir)/doc/$(PACKAGE)/html
     2 
     2 
     3 EXTRA_DIST = \
     3 EXTRA_DIST += \
     4 	html \
     4 	doc/html \
     5 	icons/geom/ftv2doc.png \
     5 	doc/icons/geom/ftv2doc.png \
     6 	icons/geom/ftv2folderclosed.png \
     6 	doc/icons/geom/ftv2folderclosed.png \
     7 	icons/geom/ftv2folderopen.png \
     7 	doc/icons/geom/ftv2folderopen.png \
     8 	coding_style.dox \
     8 	doc/coding_style.dox \
     9 	developers_interface.dox \
     9 	doc/developers_interface.dox \
    10 	dirs.dox \
    10 	doc/dirs.dox \
    11 	getstart.dox \
    11 	doc/getstart.dox \
    12 	graph-adaptors.dox \
    12 	doc/graph-adaptors.dox \
    13 	graph_io.dox \
    13 	doc/graph_io.dox \
    14 	graphs.dox \
    14 	doc/graphs.dox \
    15 	groups.dox \
    15 	doc/groups.dox \
    16 	license.dox \
    16 	doc/license.dox \
    17 	mainpage.dox \
    17 	doc/mainpage.dox \
    18 	maps.dox \
    18 	doc/maps.dox \
    19 	named-param.dox \
    19 	doc/named-param.dox \
    20 	namespaces.dox \
    20 	doc/namespaces.dox \
    21 	quicktour.dox \
    21 	doc/quicktour.dox \
    22 	ugraphs.dox
    22 	doc/ugraphs.dox
    23 
    23 
    24 html/index.html:
    24 doc:
    25 	if test ${doxygen_found} = yes; then \
    25 	if test ${doxygen_found} = yes; then \
       
    26 	  cd doc; \
    26 	  doxygen Doxyfile; \
    27 	  doxygen Doxyfile; \
    27 	  cp $(srcdir)/icons/geom/ftv2* html; \
    28 	  cd ..; \
       
    29 	  cp $(srcdir)/doc/icons/geom/ftv2* doc/html; \
    28 	fi
    30 	fi
    29 
    31 
    30 html: html/index.html
    32 doc-clean:
       
    33 	if test ${doxygen_found} = yes; then \
       
    34 	  rm -rf doc/html; \
       
    35 	  rm -f doc/doxygen.log; \
       
    36 	  cd doc; \
       
    37 	  doxygen Doxyfile; \
       
    38 	  cd ..; \
       
    39 	  cp $(srcdir)/doc/icons/geom/ftv2* doc/html; \
       
    40 	fi
    31 
    41 
    32 clean-local:
    42 clean-local:
    33 	-rm -rf html
    43 	-rm -rf doc/html
       
    44 	-rm -f doc/doxygen.log
    34 
    45 
    35 install-data-local: html/index.html
    46 doc/html:
       
    47 	$(MAKE) $(AM_MAKEFLAGS) doc-clean
       
    48 
       
    49 install-data-local: doc/html
    36 	@$(NORMAL_INSTALL)
    50 	@$(NORMAL_INSTALL)
    37 	$(mkinstalldirs) $(DESTDIR)$(htmldir)
    51 	$(mkinstalldirs) $(DESTDIR)$(htmldir)
    38 	@dir='html'; shopt -s nullglob; for p in $$dir/*.html $$dir/*.css $$dir/*.png $$dir/*.gif $$dir/*.dot $$dir/*.php $$dir/*.idx $$dir/*.tag ; do \
    52 	@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 \
    39 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    53 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    40 	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f"; \
    54 	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f"; \
    41 	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f; \
    55 	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f; \
    42 	done
    56 	done
    43 
    57 
    44 uninstall-local: html/index.html
    58 uninstall-local: doc/html
    45 	@$(NORMAL_UNINSTALL)
    59 	@$(NORMAL_UNINSTALL)
    46 	@dir='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 	@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 \
    47 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    61 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    48 	  echo " rm -f $(DESTDIR)$(htmldir)/$$f"; \
    62 	  echo " rm -f $(DESTDIR)$(htmldir)/$$f"; \
    49 	  rm -f $(DESTDIR)$(htmldir)/$$f; \
    63 	  rm -f $(DESTDIR)$(htmldir)/$$f; \
    50 	done
    64 	done
       
    65 
       
    66 .PHONY: doc doc-clean