1b50d02b65f1936b8208bcaeee3fb765ae250aa6
[NetworkManager.git] / docs / api / Makefile.am
1 AUTOMAKE_OPTIONS = 1.7
2
3 XSLTPROC = xsltproc --xinclude --nonet
4 XMLS = $(wildcard $(top_srcdir)/introspection/nm-*.xml)
5
6 OTHER_FILES= \
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
13
14 GENERATED_FILES = spec.html
15
16 if SETTING_DOCS_AVAILABLE
17
18 settings-spec.xml: settings-spec.xsl $(top_builddir)/libnm/nm-setting-docs.xml
19         $(AM_V_GEN) xsltproc --output $@ $^
20
21 # Top-level SGML file includes (depends on) settings-spec.xml
22 $(DOC_MAIN_SGML_FILE): settings-spec.xml
23
24 GENERATED_FILES += settings-spec.xml
25
26 endif
27
28 if ENABLE_GTK_DOC
29
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/
34
35 all: $(GENERATED_FILES)
36
37 endif
38
39 ####################################
40
41 # The name of the module.
42 DOC_MODULE=NetworkManager
43
44 # The top-level SGML file.
45 DOC_MAIN_SGML_FILE=network-manager-docs.xml
46
47 DOC_SOURCE_DIR=$(srcdir)
48
49 # Extra options to supply to gtkdoc-mkdb
50 MKDB_OPTIONS=--sgml-mode --output-format=xml
51
52 # Extra options to supply to gtkdoc-mktmpl
53 MKTMPL_OPTIONS=
54
55 # Extra options to supply to gtkdoc-mkhtml
56 MKHTML_OPTIONS=--path="$(abs_srcdir)"
57
58 # Non-autogenerated SGML files to be included in $(DOC_MAIN_SGML_FILE)
59 content_files = \
60         version.xml \
61         migrating-to-09.xml \
62         ../../COPYING \
63         $(NULL)
64
65 include $(top_srcdir)/gtk-doc.make
66
67 ####################################
68
69 EXTRA_DIST += version.xml.in settings-spec.xsl $(GENERATED_FILES)
70 CLEANFILES += html/* tmpl/* xml/* \
71         NetworkManager-sections.txt \
72         NetworkManager-overrides.txt
73
74 if BUILD_SETTING_DOCS
75 CLEANFILES += settings-spec.xml
76 endif
77
78 if ENABLE_GTK_DOC
79 CLEANFILES += spec.html
80 endif