summaryrefslogtreecommitdiff
path: root/doc/Makefile
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2017-07-03 00:21:02 +0200
committerLinus Nordberg <linus@nordu.net>2017-07-06 17:48:30 +0200
commitbb67c23918ba22be498537a29c01b696732d5b3b (patch)
tree4562cc0f90eac0fb992508f64946ad28ee4bb636 /doc/Makefile
parentb09e878a21c09d8344ec8b2a896d7d1a8162387e (diff)
Automatic generation of config man page skeleton
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/Makefile b/doc/Makefile
index b3de194..528b6d5 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -1,7 +1,12 @@
MANDOCS = catlfish.1 genconfig.1
RONN = ronn --warnings --organization="FIXME:\$$version"
-all: man html
+all: configman man html
+
+configman:
+ ../tools/compileconfig.py --manpagedir=.
+ make catlfish-log.cfg.in.5
+ make catlfish-node.cfg.5
man: $(MANDOCS)
@@ -10,6 +15,9 @@ html: $(addsuffix .html,$(MANDOCS))
%: %.md
$(RONN) --roff $^
+%: %.adoc
+ a2x --doctype manpage --format manpage $^
+
%.html: %.md
$(RONN) --html $^