Add example for D-Bus documentation
[framework/connectivity/connman.git] / doc / Makefile.am
1
2 DOC_MODULE = connman
3
4 DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.xml
5
6 DOC_SOURCE_DIR = ../src
7
8 SCAN_OPTIONS = --rebuild-sections --source-dir=../include
9
10 MKDB_OPTIONS = --sgml-mode --output-format=xml --tmpl-dir=. \
11                                                 --ignore-files=connman \
12                                                 --source-dir=../include \
13                                                 --source-suffixes=c,h
14
15 MKTMPL_OPTIONS = --output-dir=.
16
17 HFILE_GLOB = $(top_srcdir)/include/*.h
18 CFILE_GLOB = $(top_srcdir)/src/*.c $(top_srcdir)/src/*.h
19
20 IGNORE_HFILES = connman connman.h rtnl.h dbus.h iface.h
21
22 HTML_IMAGES =
23
24 content_files = connman-introduction.xml
25
26 INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/gdbus \
27         $(GTHREAD_CFLAGS) $(GMODULE_CFLAGS) $(GLIB_CFLAGS) $(DBUS_CFLAGS)
28
29 GTKDOC_LIBS = $(DBUS_LIBS) $(GLIB_LIBS) $(GMODULE_LIBS) $(GTHREAD_LIBS)
30
31 MAINTAINERCLEANFILES = Makefile.in \
32         $(DOC_MODULE).types $(DOC_MODULE)-*.txt *.sgml
33
34 if ENABLE_GTK_DOC
35 include $(top_srcdir)/doc/gtk-doc.make
36
37 all-local: xml/dbus-manager.xml
38
39 xml/dbus-manager.xml : dbus-manager.xml dbus-introspection.xsl
40         echo "<?xml version=\"1.0\"?>" > $@
41         echo "<!DOCTYPE refentry PUBLIC \"-//OASIS//DTD DocBook XML V4.1.2//EN\" \"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd\">" >> $@
42         $(XSLTPROC) dbus-introspection.xsl $< | tail -n +2 >> $@
43
44 else
45 EXTRA_DIST = $(DOC_MAIN_SGML_FILE) $(content_files)
46 endif
47
48 EXTRA_DIST += dbus-introspection.dtd dbus-introspection.xsl \
49                 dbus-manager.xml
50
51 EXTRA_DIST += manager-api.txt element-api.txt agent-api.txt plugin-api.txt