Makefile.am 1.86 KB
Newer Older
1 2
AUTOMAKE_OPTIONS = 1.7

3
if ENABLE_DOC
4 5 6 7 8

XSLTPROC = xsltproc --xinclude --nonet
XMLS = $(wildcard $(top_srcdir)/introspection/nm-*.xml)

OTHER_FILES= \
9
	$(top_builddir)/introspection/all.xml \
10 11 12 13 14 15
	$(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

16
GENERATED_FILES = spec.html settings-spec.xml
17

18
spec.html: $(XMLS) $(OTHER_FILES) html-build.stamp
19
	$(XSLTPROC) --path "$(top_builddir)/introspection:$(top_srcdir)/introspection" $(top_srcdir)/tools/doc-generator.xsl $(top_builddir)/introspection/all.xml > $@
20
	mkdir -p $(builddir)/html/
21
	cp $@ $(builddir)/html/
22

23 24
# settings-spec.xml should *not* be DISTed because it must be regenerated
# whenever the libnm-util source changes
25
settings-spec.xml: $(top_builddir)/tools/generate-settings-spec $(top_builddir)/libnm-util/libnm-util.la
26
	$(top_builddir)/tools/generate-settings-spec book $@
27

28 29 30
# Top-level SGML file includes (depends on) settings-spec.xml
$(DOC_MAIN_SGML_FILE): settings-spec.xml

Dan Williams's avatar
Dan Williams committed
31
all: $(GENERATED_FILES)
32 33 34 35 36 37 38 39 40

####################################

# The name of the module.
DOC_MODULE=NetworkManager

# The top-level SGML file.
DOC_MAIN_SGML_FILE=network-manager-docs.xml

41 42
DOC_SOURCE_DIR=$(srcdir)

43 44 45 46 47 48 49 50 51
# 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 \
52
	migrating-to-09.xml \
53 54 55 56 57 58
	$(NULL)

include $(top_srcdir)/gtk-doc.make

####################################

59
EXTRA_DIST += spec.html
60 61 62 63
CLEANFILES += $(GENERATED_FILES)

else

64
EXTRA_DIST =
Dan Williams's avatar
Dan Williams committed
65
CLEANFILES =
66 67 68 69

endif

EXTRA_DIST += version.xml.in
70 71 72
CLEANFILES += html/* tmpl/* xml/* \
	NetworkManager-sections.txt \
	NetworkManager-overrides.txt