aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy Wing2020-08-04 02:25:48 +0200
committerTeddy Wing2020-08-04 02:25:48 +0200
commit1348559fd38f34f2723e33200c247f6b1d4f6f81 (patch)
treeffb41b72cee1841a07831cd37d444866c0d1c97a /Makefile
parent425f8813ba464fe37d3cc0344b1cc4c7ff4882f9 (diff)
downloadgit-suggestion-1348559fd38f34f2723e33200c247f6b1d4f6f81.tar.bz2
Add man page for `git-sugpatch`
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9d90c2a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,9 @@
+MAN_PAGES := $(patsubst doc/%.1.txt,doc/%.1,$(wildcard doc/*.1.txt))
+
+.PHONY: doc
+doc: $(MAN_PAGES)
+
+doc/%.1: doc/%.1.txt
+ sed 's/`/*/g' $< > $@.transformed
+ a2x --no-xmllint --format manpage $@.transformed
+ rm $@.transformed