doc/Makefile.am
author Alpar Juttner <alpar@cs.elte.hu>
Thu, 20 Dec 2007 23:26:44 +0000
changeset 17 d0dd44af6fec
parent 1 51eaad3a817b
child 56 9597aa501c7c
permissions -rw-r--r--
A better way to insert hg revision id into the version string
- use the hg option --template
- put one more underscore into the version string
     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 	fi
    13 
    14 doc-clean:
    15 	if test ${doxygen_found} = yes; then \
    16 	  rm -rf doc/html; \
    17 	  rm -f doc/doxygen.log; \
    18 	  cd doc; \
    19 	  doxygen Doxyfile; \
    20 	  cd ..; \
    21 	fi
    22 
    23 clean-local:
    24 	-rm -rf doc/html
    25 	-rm -f doc/doxygen.log
    26 
    27 doc/html:
    28 	$(MAKE) $(AM_MAKEFLAGS) doc-clean
    29 
    30 if WANT_DOC
    31 
    32 install-data-local: doc/html
    33 	@$(NORMAL_INSTALL)
    34 	$(mkinstalldirs) $(DESTDIR)$(htmldir)
    35 	@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 \
    36 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    37 	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f"; \
    38 	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f; \
    39 	done
    40 
    41 uninstall-local: doc/html
    42 	@$(NORMAL_UNINSTALL)
    43 	@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 \
    44 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    45 	  echo " rm -f $(DESTDIR)$(htmldir)/$$f"; \
    46 	  rm -f $(DESTDIR)$(htmldir)/$$f; \
    47 	done
    48 
    49 endif WANT_DOC
    50 
    51 .PHONY: doc doc-clean