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