summary refs log tree commit diff
path: root/docs/api/Makefile.am
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2011-04-08 07:30:59 +0200
committerMichael Biebl <biebl@debian.org>2011-04-08 07:30:59 +0200
commitf75dd6fd1975146623052b843b182dc32c3fbe46 (patch)
tree05ba60b772670f038c9a1fbff940ec5d3e28d870 /docs/api/Makefile.am
parentc980bdf58dc973dd5617aaa6f9466f9e44fcbf58 (diff)
Imported Upstream version 0.8.998 upstream/0.8.998
Diffstat (limited to 'docs/api/Makefile.am')
-rw-r--r--docs/api/Makefile.am88
1 files changed, 88 insertions, 0 deletions
diff --git a/docs/api/Makefile.am b/docs/api/Makefile.am
new file mode 100644
index 00000000..687d9cfb
--- /dev/null
+++ b/docs/api/Makefile.am
@@ -0,0 +1,88 @@
+GENERATE_SETTINGS_SPEC_SOURCE = generate-settings-spec.c
+
+AUTOMAKE_OPTIONS = 1.7
+
+if WITH_DOCS
+
+INCLUDES = \
+	-I$(top_srcdir)/include \
+	-I$(top_srcdir)/libnm-util
+
+noinst_PROGRAMS = \
+	generate-settings-spec
+
+generate_settings_spec_SOURCES = \
+	$(GENERATE_SETTINGS_SPEC_SOURCE)
+
+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.xml
+
+spec.html: $(XMLS) $(OTHER_FILES) html-build.stamp
+	$(XSLTPROC) $(top_srcdir)/tools/doc-generator.xsl $(top_srcdir)/introspection/all.xml > $@
+	mkdir -p $(builddir)/html/
+	cp $@ $(builddir)/html/
+
+settings-spec.xml: generate-settings-spec $(top_builddir)/libnm-util/libnm-util.la
+	rm -f $(builddir)/$@
+	$(builddir)/generate-settings-spec $(builddir)/$@
+
+all: $(GENERATED_FILES)
+
+####################################
+
+# The name of the module.
+DOC_MODULE=NetworkManager
+
+# The top-level SGML file.
+DOC_MAIN_SGML_FILE=network-manager-docs.xml
+
+# Extra options to supply to gtkdoc-mkdb
+MKDB_OPTIONS=--sgml-mode --output-format=xml
+
+# Extra options to supply to gtkdoc-mktmpl
+MKTMPL_OPTIONS=
+
+# Non-autogenerated SGML files to be included in $(DOC_MAIN_SGML_FILE)
+content_files = \
+	version.xml \
+	settings-spec.xml \
+	migrating-to-09.xml \
+	$(NULL)
+
+include $(top_srcdir)/gtk-doc.make
+
+####################################
+
+EXTRA_DIST += $(GENERATED_FILES)
+CLEANFILES += $(GENERATED_FILES)
+
+else
+
+EXTRA_DIST = $(GENERATE_SETTINGS_SPEC_SOURCE)
+CLEANFILES =
+
+endif
+
+EXTRA_DIST += version.xml.in
+
+CLEANFILES += html/* tmpl/* xml/*
+