diff options
author | Jamey Sharp <jamey@minilop.net> | 2006-11-18 19:36:48 -0800 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2006-11-18 22:35:39 -0800 |
commit | 44a2160c95f6c90d461d66c0278348c62d2d77fa (patch) | |
tree | 9be8eb9e843dd38b212be458b0eb27452119a6b9 /doc/Makefile.am | |
parent | 142fe9a6f2b13d42b0e4baaa25155067f45d065b (diff) |
Make doc installation work and simplify doc/Makefile.am.
Don't override the default htmldir with an unquoted copy.
Don't suppress `make` echoing on Doxygen commands.
Ensure the tutorial is always installed even if Doxygen isn't
available.
Take better advantage of the automake installation infrastructure.
Diffstat (limited to 'doc/Makefile.am')
-rw-r--r-- | doc/Makefile.am | 39 |
1 files changed, 15 insertions, 24 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am index 4b0ec90..f46f0b1 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -3,38 +3,29 @@ EXTRA_DIST = \ tutorial/index.html \ tutorial/xcb.css -if BUILD_DOCS +htmlDATA_INSTALL = cp -pR -# install documentation +html_DATA = tutorial/ -all-local: doc-build.stamp +uninstall-htmlDATA: + @$(NORMAL_UNINSTALL) + @list='$(html_DATA)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -rf '$(DESTDIR)$(htmldir)/$$f'"; \ + rm -rf "$(DESTDIR)$(htmldir)/$$f"; \ + done + rmdir "$(DESTDIR)$(htmldir)/" || true -# rule to remove all old created files -doc-prepare.stamp: - @if test -d manual/ ; then \ - rm -rf manual/; \ - fi +if BUILD_DOCS # rule to build documentation and copy necessary files -doc-build.stamp: doc-prepare.stamp - @cd .. && doxygen xcb.doxygen +manual: clean-local + cd .. && doxygen xcb.doxygen # rules to clean clean-local: - @rm -rf manual/ - -install-data-local: install-html-local - -# rule to install the html documentation and tutorial in $(htmldir) -install-html-local: - @if ! test -d "$(DESTDIR)$(htmldir)"; then \ - $(mkinstalldirs) "$(DESTDIR)$(htmldir)"; \ - fi - @cp -pr manual/ "$(DESTDIR)$(htmldir)" - @cp -pr tutorial/ "$(DESTDIR)$(htmldir)" + rm -rf manual/ -# rule to uninstall the documentation -uninstall-local: - @rm -rf $(DESTDIR)$(htmldir) +html_DATA += manual/ endif |