3 XSLTPROC = xsltproc --xinclude --nonet
4 XMLS = $(wildcard $(top_srcdir)/introspection/nm-*.xml)
7 $(top_builddir)/introspection/all.xml \
8 $(top_srcdir)/introspection/generic-types.xml \
9 $(top_srcdir)/introspection/errors.xml \
10 $(top_srcdir)/introspection/vpn-errors.xml \
11 $(top_srcdir)/tools/doc-generator.xsl \
12 $(top_srcdir)/introspection/generic-types.xml
14 GENERATED_FILES = spec.html
16 if SETTING_DOCS_AVAILABLE
18 settings-spec.xml: settings-spec.xsl $(top_builddir)/libnm/nm-setting-docs.xml
19 $(AM_V_GEN) xsltproc --output $@ $^
21 # Top-level SGML file includes (depends on) settings-spec.xml
22 $(DOC_MAIN_SGML_FILE): settings-spec.xml
24 GENERATED_FILES += settings-spec.xml
30 spec.html: $(XMLS) $(OTHER_FILES) html-build.stamp
31 $(XSLTPROC) --path "$(top_builddir)/introspection:$(top_srcdir)/introspection" $(top_srcdir)/tools/doc-generator.xsl $(top_builddir)/introspection/all.xml > spec.html
32 mkdir -p $(builddir)/html/
33 cp spec.html $(builddir)/html/
35 all: $(GENERATED_FILES)
39 ####################################
41 # The name of the module.
42 DOC_MODULE=NetworkManager
44 # The top-level SGML file.
45 DOC_MAIN_SGML_FILE=network-manager-docs.xml
47 DOC_SOURCE_DIR=$(srcdir)
49 # Extra options to supply to gtkdoc-mkdb
50 MKDB_OPTIONS=--sgml-mode --output-format=xml
52 # Extra options to supply to gtkdoc-mktmpl
55 # Extra options to supply to gtkdoc-mkhtml
56 MKHTML_OPTIONS=--path="$(abs_srcdir)"
58 # Non-autogenerated SGML files to be included in $(DOC_MAIN_SGML_FILE)
65 include $(top_srcdir)/gtk-doc.make
67 ####################################
69 EXTRA_DIST += version.xml.in settings-spec.xsl $(GENERATED_FILES)
70 CLEANFILES += html/* tmpl/* xml/* \
71 NetworkManager-sections.txt \
72 NetworkManager-overrides.txt
75 CLEANFILES += settings-spec.xml
79 CLEANFILES += spec.html