Skip to content

Commit

Permalink
Extend man Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
AsamK committed Jan 18, 2025
1 parent 055a8ee commit 2d1ba6b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions man/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
A2X = a2x
MKDIR = mkdir
GZIP = gzip

MANPAGESRC = signal-cli.1 signal-cli-dbus.5 signal-cli-jsonrpc.5

Expand All @@ -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

0 comments on commit 2d1ba6b

Please sign in to comment.