aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6b935bf..d8b19c7 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,15 @@ DEPENDENCIES := Cargo.toml
DEBUG_PRODUCT := target/debug/git-todo
+.PHONY: doc
+doc: doc/git-todo.1
+
+doc/git-todo.1: doc/git-todo.1.txt
+ sed 's/`/*/g' $< > $@.transformed
+ a2x --no-xmllint --format manpage $@.transformed
+ rm $@.transformed
+
+
.PHONY: test
test: $(DEBUG_PRODUCT)
prove -v -I./t