X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2FMakefile.am;h=f3c934a72ba1ff769af9a776730e2c51a8354bb5;hb=422458b66380e4103c4937f0e2e8bb93e31f273a;hp=27f492c54f786e2cb6cd00add77f20d10a44c177;hpb=af3a15838fc7dc5b4e52197854deb54da6baeaf1;p=free-sw%2Fxcb%2Flibxcb diff --git a/doc/Makefile.am b/doc/Makefile.am index 27f492c..f3c934a 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -2,31 +2,47 @@ EXTRA_DIST = \ tutorial/index.html \ tutorial/xcb.css \ -xcb.doxygen.in +xcb.doxygen.in \ +xkb_internals \ +xkb_issues -htmlDATA_INSTALL = cp -pR +docdirs = $(srcdir)/tutorial -html_DATA = tutorial/ +if ENABLE_DEVEL_DOCS +if HAVE_DOXYGEN +if HAVE_DOT -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 - -if BUILD_DOCS +docdirs += manual # rule to build documentation and copy necessary files -manual: clean-local +manual: doxygen xcb.doxygen # rules to clean clean-local: rm -rf manual/ -html_DATA += manual/ - endif +endif +endif + +all-local: $(docdirs) + +# rule to install the html documentation and tutorial in $(htmldir) +install-data-local: + @if ! test -d "$(DESTDIR)$(htmldir)"; then \ + echo "$(mkinstalldirs) '$(DESTDIR)$(htmldir)'"; \ + $(mkinstalldirs) '$(DESTDIR)$(htmldir)'; \ + fi + @for d in $(docdirs); do \ + echo "cp -pR $$d '$(DESTDIR)$(htmldir)/'"; \ + cp -pR $$d '$(DESTDIR)$(htmldir)/'; \ + done + +uninstall-local: + @for d in $(docdirs); do \ + d=`basename $$d`; \ + echo "test ! -d '$(DESTDIR)$(htmldir)/'$$d || { find '$(DESTDIR)$(htmldir)/'$$d -type d ! -perm -200 -exec chmod u+w '{}' ';' && rm -rf '$(DESTDIR)$(htmldir)/'$$d; }"; \ + test ! -d '$(DESTDIR)$(htmldir)/'$$d || { find '$(DESTDIR)$(htmldir)/'$$d -type d ! -perm -200 -exec chmod u+w '{}' ';' && rm -rf '$(DESTDIR)$(htmldir)/'$$d; }; \ + done + rmdir "$(DESTDIR)$(htmldir)/" || true