Make doc installation work and simplify doc/Makefile.am.
[free-sw/xcb/libxcb] / doc / Makefile.am
1
2 EXTRA_DIST = \
3 tutorial/index.html \
4 tutorial/xcb.css
5
6 htmlDATA_INSTALL = cp -pR
7
8 html_DATA = tutorial/
9
10 uninstall-htmlDATA:
11         @$(NORMAL_UNINSTALL)
12         @list='$(html_DATA)'; for p in $$list; do \
13           f=$(am__strip_dir) \
14           echo " rm -rf '$(DESTDIR)$(htmldir)/$$f'"; \
15           rm -rf "$(DESTDIR)$(htmldir)/$$f"; \
16         done
17         rmdir "$(DESTDIR)$(htmldir)/" || true
18
19 if BUILD_DOCS
20
21 # rule to build documentation and copy necessary files
22 manual: clean-local
23         cd .. && doxygen xcb.doxygen
24
25 # rules to clean
26 clean-local:
27         rm -rf manual/
28
29 html_DATA += manual/
30
31 endif