blob: 8caffe565750fd8e6b60dd7a12f1ba3584fc26af (
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
|
DOCS := \
kdbus.xml \
kdbus.bus.xml \
kdbus.connection.xml \
kdbus.endpoint.xml \
kdbus.fs.xml \
kdbus.item.xml \
kdbus.match.xml \
kdbus.message.xml \
kdbus.name.xml \
kdbus.policy.xml \
kdbus.pool.xml
XMLFILES := $(addprefix $(obj)/,$(DOCS))
MANFILES := $(patsubst %.xml, %.7, $(XMLFILES))
HTMLFILES := $(patsubst %.xml, %.html, $(XMLFILES))
XMLTO_ARGS := -m $(srctree)/$(src)/stylesheet.xsl --skip-validation
quiet_cmd_db2man = MAN $@
cmd_db2man = xmlto man $(XMLTO_ARGS) -o $(obj) $<
%.7: %.xml
@(which xmlto > /dev/null 2>&1) || \
(echo "*** You need to install xmlto ***"; \
exit 1)
$(call cmd,db2man)
quiet_cmd_db2html = HTML $@
cmd_db2html = xmlto html-nochunks $(XMLTO_ARGS) -o $(obj) $<
%.html: %.xml
@(which xmlto > /dev/null 2>&1) || \
(echo "*** You need to install xmlto ***"; \
exit 1)
$(call cmd,db2html)
mandocs: $(MANFILES)
htmldocs: $(HTMLFILES)
clean-files := $(MANFILES) $(HTMLFILES)
# we don't support other %docs targets right now
%docs:
@true
|