doc/Makefile.am
changeset 1 51eaad3a817b
child 2 1a1c050e941b
equal deleted inserted replaced
-1:000000000000 0:c4586d2954da
       
     1 htmldir = $(datadir)/doc/$(PACKAGE)/html
       
     2 
       
     3 EXTRA_DIST += \
       
     4 	doc/Makefile \
       
     5 	doc/Doxyfile.in
       
     6 
       
     7 doc:
       
     8 	if test ${doxygen_found} = yes; then \
       
     9 	  cd doc; \
       
    10 	  doxygen Doxyfile; \
       
    11 	  cd ..; \
       
    12 	  cp $(srcdir)/doc/icons/geom/ftv2* doc/html; \
       
    13 	fi
       
    14 
       
    15 doc-clean:
       
    16 	if test ${doxygen_found} = yes; then \
       
    17 	  rm -rf doc/html; \
       
    18 	  rm -f doc/doxygen.log; \
       
    19 	  cd doc; \
       
    20 	  doxygen Doxyfile; \
       
    21 	  cd ..; \
       
    22 	  cp $(srcdir)/doc/icons/geom/ftv2* doc/html; \
       
    23 	fi
       
    24 
       
    25 clean-local:
       
    26 	-rm -rf doc/html
       
    27 	-rm -f doc/doxygen.log
       
    28 
       
    29 doc/html:
       
    30 	$(MAKE) $(AM_MAKEFLAGS) doc-clean
       
    31 
       
    32 if WANT_DOC
       
    33 
       
    34 install-data-local: doc/html
       
    35 	@$(NORMAL_INSTALL)
       
    36 	$(mkinstalldirs) $(DESTDIR)$(htmldir)
       
    37 	@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 \
       
    38 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
       
    39 	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f"; \
       
    40 	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f; \
       
    41 	done
       
    42 
       
    43 uninstall-local: doc/html
       
    44 	@$(NORMAL_UNINSTALL)
       
    45 	@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 \
       
    46 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
       
    47 	  echo " rm -f $(DESTDIR)$(htmldir)/$$f"; \
       
    48 	  rm -f $(DESTDIR)$(htmldir)/$$f; \
       
    49 	done
       
    50 
       
    51 endif WANT_DOC
       
    52 
       
    53 .PHONY: doc doc-clean