From 2d1ba6b4caeeee03d9a7933f0e5f072a716fa014 Mon Sep 17 00:00:00 2001 From: AsamK Date: Sat, 18 Jan 2025 19:56:23 +0100 Subject: [PATCH] Extend man Makefile --- man/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/man/Makefile b/man/Makefile index 55d27fd343..e3aca11030 100644 --- a/man/Makefile +++ b/man/Makefile @@ -1,4 +1,6 @@ A2X = a2x +MKDIR = mkdir +GZIP = gzip MANPAGESRC = signal-cli.1 signal-cli-dbus.5 signal-cli-jsonrpc.5 @@ -8,3 +10,13 @@ all: $(MANPAGESRC) %: %.adoc @echo "Generating manpage for $@" $(A2X) --no-xmllint --doctype manpage --format manpage "$^" + +.PHONY: install +install: all + $(MKDIR) -p man1 man5 + for f in *.1; do $(GZIP) < "$$f" > man1/"$$f".gz ; done + for f in *.5; do $(GZIP) < "$$f" > man5/"$$f".gz ; done + +.PHONY: clean +clean: + rm -rf *.1 *.5 man1 man5