aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/Makefile.am
diff options
context:
space:
mode:
authorAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-11-12 06:38:34 +0100
committerAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2011-02-14 14:24:38 +0000
commit21e4ea2a1dd922dbab3e182b41aa0d4666b0057e (patch)
tree80c390609f167f346e069e01266df850d6c85146 /src/clients/cave/Makefile.am
parentab058c01e39001bc66963b054bbd8ad9ea3638c6 (diff)
downloadpaludis-21e4ea2a1dd922dbab3e182b41aa0d4666b0057e.tar.gz
paludis-21e4ea2a1dd922dbab3e182b41aa0d4666b0057e.tar.xz
cave: Generate man-pages using asciidoc
Diffstat (limited to 'src/clients/cave/Makefile.am')
-rw-r--r--src/clients/cave/Makefile.am26
1 files changed, 18 insertions, 8 deletions
diff --git a/src/clients/cave/Makefile.am b/src/clients/cave/Makefile.am
index 55a4441..4400635 100644
--- a/src/clients/cave/Makefile.am
+++ b/src/clients/cave/Makefile.am
@@ -82,17 +82,23 @@ man_MANS = \
cave.1 \
$(command_MANS)
-cave.1 : man-cave
- env \
- CAVE_FORMATS_CONF="/dev/null" \
- CAVE_COMMANDS_PATH="" \
- ./man-cave > $@
+man_MANS_txts = $(man_MANS:.1=.txt)
+man_MANS_xmls = $(man_MANS_txts:.txt=.xml)
+
+SUFFIXES = .1 .txt .xml
-$(command_MANS) : man-cave
+$(man_MANS_txts) : man-cave
if ! env \
CAVE_FORMATS_CONF="/dev/null" \
CAVE_COMMANDS_PATH="" \
- ./man-cave `echo $@ | sed -e 's.^cave-..' -e 's,\.1$$,,'` > $@ ; then rm -f $@ ; exit 1 ; fi
+ ./man-cave --asciidoc `echo $@ | sed -e 's.^cave-*..' -e 's,\.txt$$,,'` > $@ ; then rm -f $@ ; exit 1 ; fi
+
+.txt.xml :
+ asciidoc --doctype=manpage --backend=docbook --out-file=$@ $<
+
+.xml.1 :
+ xmlto man $<
+ @: $@
cave_SOURCES = \
cave.cc
@@ -209,7 +215,11 @@ EXTRA_DIST = \
continue_on_failure_TEST_setup.sh continue_on_failure_TEST_cleanup.sh \
moo
-DISTCLEANFILES = $(man_MANS) $(noinst_DATA)
+DISTCLEANFILES = \
+ $(man_MANS) \
+ $(noinst_DATA) \
+ $(man_MANS_txts) \
+ $(man_MANS_xmls)
lib_LTLIBRARIES =