authd/mk/install.mk

24 lines
1.0 KiB
Makefile
Raw Normal View History

2024-11-30 12:02:01 +01:00
# DESTDIR envvar is a way to install the application in a different root (for building packages for example).
PREFIX ?= /usr/local
2024-11-30 12:02:01 +01:00
BINDIR ?= $(PREFIX)/bin
SHAREDIR ?= $(PREFIX)/share
DOCDIR ?= $(SHAREDIR)/doc/authd
MANDIR ?= $(SHAREDIR)/man
install-authd: build-server ; $(Q)install -D -m 555 ./bin/authd $(DESTDIR)$(BINDIR)/authd
2024-12-11 11:34:45 +01:00
install-authctl: build-client ; $(Q)install -D -m 555 ./bin/authctl $(DESTDIR)$(BINDIR)/authctl
install-binaries: install-authd install-authctl
2024-11-30 12:02:01 +01:00
gz-man-authd:; $(Q)gzip -k -f --best ./man/authd.1
2024-12-11 11:34:45 +01:00
gz-man-authctl:; $(Q)gzip -k -f --best ./man/authctl.1
install-man-authd: gz-man-authd ; $(Q)install -D -m 444 ./man/authd.1.gz $(DESTDIR)$(MANDIR)/man1/authd.1.gz
2024-12-11 11:34:45 +01:00
install-man-authctl: gz-man-authctl ; $(Q)install -D -m 444 ./man/authctl.1.gz $(DESTDIR)$(MANDIR)/man1/authctl.1.gz
install-man: install-man-authd install-man-authctl
2024-11-30 12:02:01 +01:00
doc:; crystal docs
install-dev-doc: doc ; $(Q)install -D docs/ $(DESTDIR)$(DOCDIR)
2024-11-30 12:02:01 +01:00
# By default, dev documentation isn't installed.
install: install-binaries install-man #install-dev-doc