summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2021-01-13 23:53:07 +0100
committerTimo Weingärtner <timo@tiwe.de>2021-01-14 00:07:29 +0100
commit36dbc5d061b39b22f2620ac0e0a137ea05dbad33 (patch)
treeba9aef7998a9041e7417f4c24b5b3b9308e5ad25 /Makefile
parent2cad5033359975238cbb95824595b638892bc039 (diff)
downloadhadori-36dbc5d061b39b22f2620ac0e0a137ea05dbad33.tar.gz
improve man page generation with help2man
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e8f40f6..959bb81 100644
--- a/Makefile
+++ b/Makefile
@@ -22,8 +22,8 @@ CPPFLAGS+=-D_FILE_OFFSET_BITS=64
all: hadori.1
-hadori.1: hadori
- help2man -n $< -o $@ -N ./$<
+%.1: %.help2man %
+ help2man -i $< -o $@ -N -L C.UTF-8 $(*D)/$(*F)
hadori: hadori.o
hadori.o: hadori.C version.h