From 27d6492faf17da616776c141b7852079de51ea60 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 20 Aug 2008 10:47:38 +0200 Subject: [PATCH] Build D-Bus documentation in its own directory --- configure.ac | 4 ++-- doc/Makefile.am | 12 +++++++----- doc/connman-docs.xml | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index 46f5c1f..615045e 100644 --- a/configure.ac +++ b/configure.ac @@ -24,10 +24,10 @@ m4_ifdef([AC_LIBTOOL_TAGS], [AC_LIBTOOL_TAGS([])]) AC_DISABLE_STATIC AC_PROG_LIBTOOL -AC_PATH_PROG([XSLTPROC], [xsltproc]) - GTK_DOC_CHECK +AC_PATH_PROG([XSLTPROC], [xsltproc]) + AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [enable compiling with debugging information]), [ if (test "${enableval}" = "yes" && diff --git a/doc/Makefile.am b/doc/Makefile.am index 0d0381f..b9ade0f 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -21,7 +21,7 @@ IGNORE_HFILES = connman connman.h rtnl.h dbus.h iface.h HTML_IMAGES = -content_files = connman-introduction.xml +content_files = connman-introduction.xml dbus/manager.xml INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/gdbus \ $(GTHREAD_CFLAGS) $(GMODULE_CFLAGS) $(GLIB_CFLAGS) $(DBUS_CFLAGS) @@ -34,15 +34,17 @@ MAINTAINERCLEANFILES = Makefile.in \ if ENABLE_GTK_DOC include $(top_srcdir)/doc/gtk-doc.make -all-local: xml/dbus-manager.xml - -xml/dbus-manager.xml : dbus-manager.xml dbus-introspection.xsl +dbus/manager.xml: dbus-manager.xml dbus-introspection.xsl + $(MKDIR_P) -p $(builddir)/dbus echo "" > $@ echo "" >> $@ $(XSLTPROC) dbus-introspection.xsl $< | tail -n +2 >> $@ +clean-local: + rm -rf $(builddir)/dbus + else -EXTRA_DIST = $(DOC_MAIN_SGML_FILE) $(content_files) +EXTRA_DIST = $(DOC_MAIN_SGML_FILE) connman-introduction.xml endif EXTRA_DIST += dbus-introspection.dtd dbus-introspection.xsl \ diff --git a/doc/connman-docs.xml b/doc/connman-docs.xml index 66d895c..f1601c4 100644 --- a/doc/connman-docs.xml +++ b/doc/connman-docs.xml @@ -65,7 +65,7 @@ Manager. - + -- 2.7.4