From fc94501bd6aa696de449321aa41770bc96a4bb34 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 3 Oct 2020 17:08:57 +0200 Subject: Add man page Copied some of the structure and the Makefile recipe from 'git-suggestion'. --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3