summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTORRI Vincent <torri@alf94-3-82-66-248-160.fbx.proxad.net>2006-11-05 18:24:30 +0100
committerTORRI Vincent <torri@alf94-3-82-66-248-160.fbx.proxad.net>2006-11-05 18:24:30 +0100
commit82762555a1af0b170d01e2042eefe34086e6c132 (patch)
tree1f55e289f0a07ee7704ff6bc2b3f59847d3a7ac0 /doc
parentf32c7131cc89c64e09e9a88c5f859824c0dfa54f (diff)
add Makefile.am for building/installing doxygen doc
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am40
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
new file mode 100644
index 0000000..4b0ec90
--- /dev/null
+++ b/doc/Makefile.am
@@ -0,0 +1,40 @@
+
+EXTRA_DIST = \
+tutorial/index.html \
+tutorial/xcb.css
+
+if BUILD_DOCS
+
+# install documentation
+
+all-local: doc-build.stamp
+
+# rule to remove all old created files
+doc-prepare.stamp:
+ @if test -d manual/ ; then \
+ rm -rf manual/; \
+ fi
+
+# rule to build documentation and copy necessary files
+doc-build.stamp: doc-prepare.stamp
+ @cd .. && doxygen xcb.doxygen
+
+# rules to clean
+clean-local:
+ @rm -rf manual/
+
+install-data-local: install-html-local
+
+# rule to install the html documentation and tutorial in $(htmldir)
+install-html-local:
+ @if ! test -d "$(DESTDIR)$(htmldir)"; then \
+ $(mkinstalldirs) "$(DESTDIR)$(htmldir)"; \
+ fi
+ @cp -pr manual/ "$(DESTDIR)$(htmldir)"
+ @cp -pr tutorial/ "$(DESTDIR)$(htmldir)"
+
+# rule to uninstall the documentation
+uninstall-local:
+ @rm -rf $(DESTDIR)$(htmldir)
+
+endif