summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2011-01-13 18:37:53 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-01-14 12:45:56 +0000
commitfbe8c192e2a53f61fde9bfd1a92a1c5876321781 (patch)
treef86ca3d2854b45380aa3d96bf776182615c592f8
parent5277d3c23287e734f057176578787a6179c4bec8 (diff)
downloaddbus-fbe8c192e2a53f61fde9bfd1a92a1c5876321781.tar.gz
Install the Doxygen documentation to $(htmldir)
Use ./configure --docdir=/foo (or --htmldir=/foo) to control where it ends up. For instance, Debian could use: --docdir=/usr/share/doc/dbus-1-doc --htmldir='${docdir}/html' Bug: https://bugs.freedesktop.org/show_bug.cgi?id=13495
-rw-r--r--doc/Makefile.am8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 1a638254..497ba807 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,3 +1,5 @@
+apidir = @htmldir@/api
+
man_MANS = \
dbus-cleanup-sockets.1 \
dbus-daemon.1 \
@@ -69,6 +71,12 @@ all-local:: doxygen.stamp
doxygen.stamp: $(wildcard $(top_srcdir)/dbus/*.[ch])
$(AM_V_GEN)cd $(top_builddir) && doxygen Doxyfile
@touch $@
+
+# this assumes CREATE_SUBDIRS isn't set to YES in Doxyfile
+# (which it isn't currently)
+install-data-local:: doxygen.stamp
+ $(MKDIR_P) $(DESTDIR)$(apidir)
+ $(INSTALL_DATA) api/html/* $(DESTDIR)$(apidir)
endif
if DBUS_HAVE_MAN2HTML