Skip to content

Commit

Permalink
LIBDIR and EXAMPLESDIR.
Browse files Browse the repository at this point in the history
  • Loading branch information
ltratt committed Jan 3, 2024
1 parent abf06e0 commit f093aec
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
LIBDIR ?= $(PREFIX)/lib
MANDIR ?= $(PREFIX)/man
SHAREDIR ?= $(PREFIX)/share
EXAMPLESDIR ?= $(SHAREDIR)/examples

.PHONY: all install test distrib

Expand All @@ -19,16 +21,16 @@ install: target/release/pizauth
install -d ${DESTDIR}${MANDIR}/man5
install -c -m 444 pizauth.1 ${DESTDIR}${MANDIR}/man1/pizauth.1
install -c -m 444 pizauth.conf.5 ${DESTDIR}${MANDIR}/man5/pizauth.conf.5
install -d ${DESTDIR}${SHAREDIR}/examples/pizauth
install -c -m 444 examples/pizauth.conf ${DESTDIR}${SHAREDIR}/examples/pizauth/pizauth.conf
install -d ${DESTDIR}${EXAMPLESDIR}/pizauth
install -c -m 444 examples/pizauth.conf ${DESTDIR}${EXAMPLESDIR}/pizauth/pizauth.conf
install -d ${DESTDIR}${SHAREDIR}/pizauth/bash
install -c -m 444 share/bash/completion.bash ${DESTDIR}${SHAREDIR}/pizauth/bash/completion.bash
ifeq ($(PLATFORM), Linux)
install -d ${DESTDIR}${PREFIX}/lib/systemd/user
install -c -m 444 lib/systemd/user/pizauth.service ${DESTDIR}${PREFIX}/lib/systemd/user/pizauth.service
install -d ${DESTDIR}${SHAREDIR}/examples/pizauth/systemd-dropins
install -c -m 444 examples/systemd-dropins/age.conf ${DESTDIR}${SHAREDIR}/examples/pizauth/systemd-dropins/age.conf
install -c -m 444 examples/systemd-dropins/gpg-dump.conf ${DESTDIR}${SHAREDIR}/examples/pizauth/systemd-dropins/gpg-dump.conf
install -d ${DESTDIR}${LIBDIR}/systemd/user
install -c -m 444 lib/systemd/user/pizauth.service ${DESTDIR}${LIBDIR}/systemd/user/pizauth.service
install -d ${DESTDIR}${EXAMPLESDIR}/pizauth/systemd-dropins
install -c -m 444 examples/systemd-dropins/age.conf ${DESTDIR}${EXAMPLESDIR}/pizauth/systemd-dropins/age.conf
install -c -m 444 examples/systemd-dropins/gpg-dump.conf ${DESTDIR}${EXAMPLESDIR}/pizauth/systemd-dropins/gpg-dump.conf
endif

test:
Expand Down

0 comments on commit f093aec

Please sign in to comment.