aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy Wing2020-10-03 17:08:57 +0200
committerTeddy Wing2020-10-03 17:08:57 +0200
commitfc94501bd6aa696de449321aa41770bc96a4bb34 (patch)
tree18cc96b0112124fe82b28a8d2fe808250d2b59c4 /Makefile
parentbea8ea75c62c2f7c6959f12e1af652aa324827a9 (diff)
downloadgit-todo-fc94501bd6aa696de449321aa41770bc96a4bb34.tar.bz2
Add man page
Copied some of the structure and the Makefile recipe from 'git-suggestion'.
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