summaryrefslogtreecommitdiff
path: root/doc/Makefile
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2017-06-02 09:53:03 +0200
committerMagnus Ahltorp <map@kth.se>2017-06-29 21:26:38 +0200
commit55e1c7b770b75a9baaf3fb39ef4cb5c663381b01 (patch)
tree2a547fcd4f0defa73a092d53dc978d5b7d26c744 /doc/Makefile
parent107b977cb8fa0df0ca5619c2f9fd9e3e6e5a83a1 (diff)
Add manpage documentation skeleton.
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/Makefile b/doc/Makefile
new file mode 100644
index 0000000..b3de194
--- /dev/null
+++ b/doc/Makefile
@@ -0,0 +1,17 @@
+MANDOCS = catlfish.1 genconfig.1
+RONN = ronn --warnings --organization="FIXME:\$$version"
+
+all: man html
+
+man: $(MANDOCS)
+
+html: $(addsuffix .html,$(MANDOCS))
+
+%: %.md
+ $(RONN) --roff $^
+
+%.html: %.md
+ $(RONN) --html $^
+
+clean:
+ -rm -f $(MANDOCS) $(addsuffix .html,$(MANDOCS))