doc/Makefile.am
author Alpar Juttner <alpar@cs.elte.hu>
Tue, 22 Jan 2008 10:59:14 +0000
changeset 59 4ab73d92f0fb
parent 2 1a1c050e941b
child 60 6ec5dbed8f18
permissions -rw-r--r--
Merge
     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 update-external-tags:
    31 	wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \
    32 	mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \
    33 	rm doc/libstdc++.tag.tmp
    34 
    35 if WANT_DOC
    36 
    37 install-data-local: doc/html
    38 	@$(NORMAL_INSTALL)
    39 	$(mkinstalldirs) $(DESTDIR)$(htmldir)
    40 	@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 \
    41 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    42 	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f"; \
    43 	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f; \
    44 	done
    45 
    46 uninstall-local: doc/html
    47 	@$(NORMAL_UNINSTALL)
    48 	@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 \
    49 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
    50 	  echo " rm -f $(DESTDIR)$(htmldir)/$$f"; \
    51 	  rm -f $(DESTDIR)$(htmldir)/$$f; \
    52 	done
    53 
    54 endif WANT_DOC
    55 
    56 .PHONY: doc doc-clean