aboutsummaryrefslogtreecommitdiff
path: root/src/clients/accerso/Makefile.am
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-16 16:02:25 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-16 16:02:25 +0000
commite6d1c28fbc15ae287fc5641fe1d365bddd113b9f (patch)
tree3312da2307e008c0f8c72ed890ac37ddd32e8536 /src/clients/accerso/Makefile.am
parentaefe735296fe393531652bc729872a0e7ec96f3a (diff)
downloadpaludis-e6d1c28fbc15ae287fc5641fe1d365bddd113b9f.tar.gz
paludis-e6d1c28fbc15ae287fc5641fe1d365bddd113b9f.tar.xz
asciidocify accerso
Diffstat (limited to 'src/clients/accerso/Makefile.am')
-rw-r--r--src/clients/accerso/Makefile.am22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/clients/accerso/Makefile.am b/src/clients/accerso/Makefile.am
index 5d8a9391b..9d131a853 100644
--- a/src/clients/accerso/Makefile.am
+++ b/src/clients/accerso/Makefile.am
@@ -14,8 +14,20 @@ bin_PROGRAMS = accerso
noinst_PROGRAMS = man-accerso
man_MANS = accerso.1
-accerso.1 : man-accerso
- ./man-accerso > $@
+SUFFIXES = .1 .txt .xml
+
+man_MANS_txts = accerso.txt
+man_MANS_xmls = accerso.xml
+
+$(man_MANS_txts) : man-accerso
+ if ! ./man-accerso --asciidoc `echo $@ | sed -e 's.^accerso-*..' -e 's,\.txt$$,,'` > $@ ; then rm -f $@ ; exit 1 ; fi
+
+.txt.xml :
+ asciidoc --doctype=manpage --backend=docbook --out-file=$@ $<
+
+.xml.1 :
+ xmlto man $<
+ @: $@
man_accerso_SOURCES = \
man_accerso.cc \
@@ -47,5 +59,9 @@ EXTRA_DIST = \
$(man_MANS) \
$(TESTS)
-DISTCLEANFILES = $(man_MANS) $(noinst_DATA)
+DISTCLEANFILES = \
+ $(man_MANS) \
+ $(noinst_DATA) \
+ $(man_MANS_txts) \
+ $(man_MANS_xmls)