Compress man-pages before install, remove useless makefile var.

This commit is contained in:
Philippe Pittoli 2024-12-01 21:43:52 +01:00
parent d7efa01072
commit 679528b432
3 changed files with 7 additions and 4 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ shard.lock
bin bin
drop drop
lib lib
man/*.gz

View File

@ -1,7 +1,6 @@
all: build-server all: build-server
Q ?= @ Q ?= @
OPTS ?= --progress
include mk/build.mk include mk/build.mk
include mk/install.mk include mk/install.mk

View File

@ -1,5 +1,5 @@
# DESTDIR envvar is a way to install the application in a different root (for building packages for example). # DESTDIR envvar is a way to install the application in a different root (for building packages for example).
PREFIX ?= /usr/local/ PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin BINDIR ?= $(PREFIX)/bin
SHAREDIR ?= $(PREFIX)/share SHAREDIR ?= $(PREFIX)/share
DOCDIR ?= $(SHAREDIR)/doc/authd DOCDIR ?= $(SHAREDIR)/doc/authd
@ -9,8 +9,11 @@ install-authd: build-server ; install -D -m 555 ./bin/authd $(DESTDIR)$(BINDIR)/
install-authc: build-client ; install -D -m 555 ./bin/authc $(DESTDIR)$(BINDIR)/authc install-authc: build-client ; install -D -m 555 ./bin/authc $(DESTDIR)$(BINDIR)/authc
install-binaries: install-authd install-authc install-binaries: install-authd install-authc
install-man-authd:; install -D -m 444 ./man/authd.1 $(DESTDIR)$(MANDIR)/authd.1 gz-man-authc:; gzip -k --best ./man/authd.1
install-man-authc:; install -D -m 444 ./man/authc.1 $(DESTDIR)$(MANDIR)/authc.1 gz-man-authd:; gzip -k --best ./man/authc.1
install-man-authd: gz-man-authc ; install -D -m 444 ./man/authd.1.gz $(DESTDIR)$(MANDIR)/man1/authd.1.gz
install-man-authc: gz-man-authd ; install -D -m 444 ./man/authc.1.gz $(DESTDIR)$(MANDIR)/man1/authc.1.gz
install-man: install-man-authd install-man-authc install-man: install-man-authd install-man-authc
doc:; crystal docs doc:; crystal docs