doc/Makefile.am
author Alpar Juttner <alpar@cs.elte.hu>
Sat, 12 Jan 2008 23:30:44 +0000
changeset 55 9bd0d6e0c279
parent 1 51eaad3a817b
child 56 9597aa501c7c
permissions -rw-r--r--
Capitalized compiler messages (reapply changeset 099a4f1844f1)

These changes somehow disappeared in 40d6f625e549
     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