summaryrefslogtreecommitdiffstats
path: root/doc/dbus/Makefile.am
blob: d8bb0eec282d106828f9abd14b8c51b52d28b6e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
NULL =

SPEC_XML_FILES =			\
	ConsoleKit.xml			\
	ck-introduction.xml		\
	ck-terms.xml			\
	ck-design.xml			\
	org.freedesktop.ConsoleKit.Manager.ref.xml	\
	org.freedesktop.ConsoleKit.Seat.ref.xml		\
	org.freedesktop.ConsoleKit.Session.ref.xml	\
	$(NULL)

if DOCBOOK_DOCS_ENABLED

htmldocdir = $(docdir)/spec
htmldoc_DATA = ConsoleKit.html

ConsoleKit.html : $(SPEC_XML_FILES)
	$(XMLTO) xhtml-nochunks -m $(top_srcdir)/doc/dbus/config.xsl ConsoleKit.xml

endif # DOCBOOK_DOCS_ENABLED

org.freedesktop.ConsoleKit.Manager.ref.xml : $(top_srcdir)/src/org.freedesktop.ConsoleKit.Manager.xml spec-to-docbook.xsl
	$(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | tail -n +2 > $@
org.freedesktop.ConsoleKit.Seat.ref.xml : $(top_srcdir)/src/org.freedesktop.ConsoleKit.Seat.xml spec-to-docbook.xsl
	$(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | tail -n +2 > $@
org.freedesktop.ConsoleKit.Session.ref.xml : $(top_srcdir)/src/org.freedesktop.ConsoleKit.Session.xml spec-to-docbook.xsl
	$(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | tail -n +2 > $@

EXTRA_DIST =				\
	spec-to-docbook.xsl		\
	ConsoleKit.xml.in		\
	config.xsl			\
	docbook.css			\
	dbus-introspect-docs.dtd	\
	$(SPEC_XML_FILES)
	$(NULL)

MAINTAINERCLEANFILES =		\
	*~			\
	Makefile.in		\
	$(NULL)

clean-local:
	rm -f *~ *.ref.xml
	rm -f ConsoleKit.html