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