summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-16 14:03:05 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-16 14:03:05 +0000
commit0b79708c332e9faffe18bb1fa10c4b708e613685 (patch)
tree7e8e9d2f4355e40b8b1095340bd0111a7b5c92cb /Makefile
parent0b929e8b8521201ba2aff0480d152f1d44ee164b (diff)
Make manpages, via "make docs"
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3cb7277..fa1df8f 100644
--- a/Makefile
+++ b/Makefile
@@ -8,10 +8,18 @@ default:
tidy:
rm -rf ./debian/custodian
+ rm -rf ./man
rm -f ./debian/custodian.debhelper.log
rm -f ./debian/custodian.substvars
rm -f ./debian/files
find . -name 'custodian-dequeue.log' -delete || true
+docs: man/custodian-dequeue.man man/custodian-enqueue.man man/custodian-queue.man man/multi-ping.man
+
+
+man/%.man: ./bin/%
+ [ -d man ] || mkdir man
+ RUBYLIB=./lib $< --manual | sed -e 's/^=\+$$//' | txt2man -s 1 -t $(notdir $<) | sed -e 's/\\\\fB/\\fB/' > $@
+
test:
t/test-suite