aboutsummaryrefslogtreecommitdiff
path: root/src/clients/appareo/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/appareo/Makefile.am')
-rw-r--r--src/clients/appareo/Makefile.am20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/clients/appareo/Makefile.am b/src/clients/appareo/Makefile.am
index ee9da66dc..5c99d4fd9 100644
--- a/src/clients/appareo/Makefile.am
+++ b/src/clients/appareo/Makefile.am
@@ -14,13 +14,14 @@ bin_PROGRAMS = appareo
noinst_PROGRAMS = man-appareo
man_MANS = appareo.1
-SUFFIXES = .1 .txt .xml
+SUFFIXES = .1 .txt .xml .html-man-fragment
man_MANS_txts = appareo.txt
man_MANS_xmls = appareo.xml
+man_MANS_html_man_fragments = appareo.html-man-fragment
$(man_MANS_txts) : man-appareo
- if ! ./man-appareo --asciidoc `echo $@ | sed -e 's.^appareo-*..' -e 's,\.txt$$,,'` > $@ ; then rm -f $@ ; exit 1 ; fi
+ if ! ./man-appareo `echo $@ | sed -e 's.^appareo-*..' -e 's,\.txt$$,,'` > $@ ; then rm -f $@ ; exit 1 ; fi
.txt.xml : $(man_MANS_txts)
asciidoc --doctype=manpage --backend=docbook --out-file=$@ $<
@@ -28,6 +29,15 @@ $(man_MANS_txts) : man-appareo
.xml.1 : $(man_MANS_xmls)
xmlto man $<
+.xml.html-man-fragment : $(man_MANS_xmls)
+ xmlto html $< -o $@-dir
+ sed \
+ -e '1s,^.*\(<div class="refnamediv">\),\1,' \
+ -e '$$s,</body>.*,,' -e '$$s,</div><div class="navfooter"><hr></div>,,' \
+ -e 's,<a name="[^"]*"></a>,,g' \
+ $@-dir/index.html > $@
+ rm -fr $@-dir
+
man_appareo_SOURCES = \
man_appareo.cc \
command_line.hh \
@@ -54,13 +64,17 @@ appareo_LDADD = \
TESTS = version_TEST \
help_TEST
+noinst_DATA = $(man_MANS_html_man_fragments)
+
EXTRA_DIST = \
$(man_MANS) \
+ $(man_MAN_html_man_fragments) \
$(TESTS)
DISTCLEANFILES = \
$(man_MANS) \
$(noinst_DATA) \
$(man_MANS_txts) \
- $(man_MANS_xmls)
+ $(man_MANS_xmls) \
+ $(man_MAN_html_man_fragments)