2009-05-22 09:55:46 -06:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
tutorial/index.html \
|
|
|
|
tutorial/xcb.css \
|
2012-03-27 13:14:20 -06:00
|
|
|
xcb.doxygen.in \
|
|
|
|
xkb_internals \
|
|
|
|
xkb_issues
|
2009-05-22 09:55:46 -06:00
|
|
|
|
|
|
|
docdirs = $(srcdir)/tutorial
|
|
|
|
|
|
|
|
if BUILD_DOCS
|
|
|
|
|
|
|
|
docdirs += manual
|
|
|
|
|
|
|
|
# rule to build documentation and copy necessary files
|
|
|
|
manual:
|
|
|
|
doxygen xcb.doxygen
|
|
|
|
|
|
|
|
# rules to clean
|
|
|
|
clean-local:
|
|
|
|
rm -rf manual/
|
|
|
|
|
|
|
|
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
|