summary refs log tree commit diff
path: root/docs/Makefile.am
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2011-04-21 10:42:53 +0200
committerMichael Biebl <biebl@debian.org>2011-04-21 10:42:53 +0200
commit8baa1aca8dfd35e3190d7d5655eb83b5b901e263 (patch)
treea9ac1e67d0c22a48330c76f08fc5291f85307055 /docs/Makefile.am
parentf75dd6fd1975146623052b843b182dc32c3fbe46 (diff)
Imported Upstream version 0.8.4.0 upstream/0.8.4.0
Diffstat (limited to 'docs/Makefile.am')
-rw-r--r--docs/Makefile.am46
1 files changed, 45 insertions, 1 deletions
diff --git a/docs/Makefile.am b/docs/Makefile.am
index a1d1b9b3..5a3da7e0 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -1,6 +1,50 @@
 if WITH_DOCS
 
-SUBDIRS = api libnm-glib libnm-util
+SUBDIRS = libnm-glib libnm-util
+
+INCLUDES = \
+	-I$(top_srcdir)/include \
+	-I$(top_srcdir)/libnm-util
+
+noinst_PROGRAMS = \
+	generate-settings-spec
+
+generate_settings_spec_SOURCES = \
+	generate-settings-spec.c
+
+generate_settings_spec_CPPFLAGS = \
+	$(GLIB_CFLAGS) \
+	$(DBUS_CFLAGS)
+
+generate_settings_spec_LDADD = \
+	$(top_builddir)/libnm-util/libnm-util.la \
+	$(GLIB_LIBS) \
+	$(DBUS_LIBS)
+
+XSLTPROC = xsltproc --xinclude --nonet
+XMLS = $(wildcard $(top_srcdir)/introspection/nm-*.xml)
+
+OTHER_FILES= \
+	$(top_srcdir)/introspection/all.xml \
+	$(top_srcdir)/introspection/generic-types.xml \
+	$(top_srcdir)/introspection/errors.xml \
+	$(top_srcdir)/introspection/vpn-errors.xml \
+	$(top_srcdir)/tools/doc-generator.xsl \
+	$(top_srcdir)/introspection/generic-types.xml
+
+GENERATED_FILES = spec.html settings-spec.html
+
+spec.html: $(XMLS) $(OTHER_FILES)
+	$(XSLTPROC) $(top_srcdir)/tools/doc-generator.xsl $(top_srcdir)/introspection/all.xml > $@
+
+settings-spec.html: generate-settings-spec $(top_builddir)/libnm-util/libnm-util.la
+	$(builddir)/generate-settings-spec $(builddir)/settings-spec.html
+
+all: $(GENERATED_FILES)
+
+EXTRA_DIST = $(GENERATED_FILES)
+
+CLEANFILES = $(GENERATED_FILES)
 
 endif