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