MCS: Simplify and cleanup the HostListener
[remote/remote-mci.git] / doc / Makefile.am
blobf55fb4732d2f0fc14eb8200f00d79bdc5dba812b
1 txt1_DOCS = \
2  remote-mch.1.txt \
3  remote-mcs.1.txt
5 txt7_DOCS = \
6  remote-device-add.7.txt \
7  remote-device-name.7.txt \
8  remote-device-remove.7.txt
10 man_DOCS = \
11  remote-mch.1 \
12  remote-mcs.1 \
13  remote-device-add.7 \
14  remote-device-name.7 \
15  remote-device-remove.7
17 html_DOCS = \
18  remote-device-add.7.html \
19  remote-device-name.7.html \
20  remote-device-remove.7.html \
21  remote-mch.1.html \
22  remote-mcs.1.html
24 EXTRA_DIST = \
25  $(txt1_DOCS) \
26  $(txt7_DOCS) \
27  $(man_DOCS) \
28  $(html_DOCS) \
29  Doxyfile \
30  asciidoc.conf
32 CLEANFILES = *.xml remote-*.7.txt
33 DISTCLEANFILES = *.1 *.7 *.html
35 ASCIIDOC_FLAGS = -f $(srcdir)/asciidoc.conf -a version=$(PACKAGE_VERSION) -a source=$(PACKAGE)
37 SUFFIXES: .txt .xml .html
39 html: $(html_DOCS)
40 man: $(man_DOCS)
42 code: Doxyfile
43         $(DOXYGEN) Doxyfile
45 remote-doc: html
46         test -z "$(DOCDIR)" || $(mkinstalldirs) -d $(DOCDIR)
47         test -z "$(DOCDIR)" || $(INSTALL_DATA) $(html_DOCS) $(DOCDIR)
49 .PHONY: code html remote-doc 
51 $(txt7_DOCS): $(srcdir)/Makefile.am
52         sed -n '2,/######/p' < $(top_srcdir)/contrib/lib/udev/$$(echo $@ | sed 's/.7.txt//') | \
53         sed 's/^#* *//' | \
54         sed '/^COPYRIGHT/,/^--------/s/^--------.*/&\n[verse]/' > $@
56 .txt.xml:
57         sed 's/\(remote-[^(]*\)(\([^)]*\))/*\1(\2)*/g' < $< | \
58         $(ASCIIDOC) $(ASCIIDOC_FLAGS) -b docbook -d manpage -o $@ -
60 .txt.html:
61         sed 's/\(remote-[^(]*\)(\([^)]*\))/*link:\1.\2.html[\1(\2)]*/g' < $< | \
62         $(ASCIIDOC) $(ASCIIDOC_FLAGS) -b xhtml11 -d manpage -o $@ -
64 .xml:
65         $(XMLTO) man $<
67 include $(top_srcdir)/Makefile.lib