X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2FMakefile.am;h=f46f0b16d2017af672aec275c423613bbfb0723b;hb=aedfa1fe1d91a10ccfe3ee6ac6b7a25885623dc6;hp=4b0ec900757714346a1dcfe0517c59d982439a5c;hpb=82762555a1af0b170d01e2042eefe34086e6c132;p=free-sw%2Fxcb%2Flibxcb 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