generator: sumof with nested expression
[free-sw/xcb/libxcb] / doc / Makefile.am
1
2 EXTRA_DIST = \
3 tutorial/index.html \
4 tutorial/xcb.css \
5 xcb.doxygen.in \
6 xkb_internals \
7 xkb_issues
8
9 docdirs = $(srcdir)/tutorial
10
11 if ENABLE_DEVEL_DOCS
12 if HAVE_DOXYGEN
13 if HAVE_DOT
14
15 docdirs += manual
16
17 # rule to build documentation and copy necessary files
18 manual:
19         doxygen xcb.doxygen
20
21 # rules to clean
22 clean-local:
23         rm -rf manual/
24
25 endif
26 endif
27 endif
28
29 all-local: $(docdirs)
30
31 # rule to install the html documentation and tutorial in $(htmldir)
32 install-data-local:
33         @if ! test -d "$(DESTDIR)$(htmldir)"; then \
34           echo "$(mkinstalldirs) '$(DESTDIR)$(htmldir)'"; \
35           $(mkinstalldirs) '$(DESTDIR)$(htmldir)'; \
36         fi
37         @for d in $(docdirs); do \
38           echo "cp -pR $$d '$(DESTDIR)$(htmldir)/'"; \
39           cp -pR $$d '$(DESTDIR)$(htmldir)/'; \
40         done
41
42 uninstall-local:
43         @for d in $(docdirs); do \
44           d=`basename $$d`; \
45           echo "test ! -d '$(DESTDIR)$(htmldir)/'$$d || { find '$(DESTDIR)$(htmldir)/'$$d -type d ! -perm -200 -exec chmod u+w '{}' ';' && rm -rf '$(DESTDIR)$(htmldir)/'$$d; }"; \
46           test ! -d '$(DESTDIR)$(htmldir)/'$$d || { find '$(DESTDIR)$(htmldir)/'$$d -type d ! -perm -200 -exec chmod u+w '{}' ';' && rm -rf '$(DESTDIR)$(htmldir)/'$$d; }; \
47         done
48         rmdir "$(DESTDIR)$(htmldir)/" || true