From 444a0606d754c19129841e54d6019c48df2fbd73 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 6 Feb 2022 21:47:34 +0100 Subject: systemd files new --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1ea60a9..29b5b6b 100644 --- a/Makefile +++ b/Makefile @@ -24,10 +24,11 @@ ETCDIR = /etc CRONDIR = /etc/cron.daily BINDIR = /usr/bin MANDIR = /usr/share/man +SYSTEMDDIR = /usr/lib/systemd/system VERSION = 4.2 -all: man.commons crypt-expiry-check crypt-expiry-check.cron crypt-expiry-check.1 +all: man.commons crypt-expiry-check crypt-expiry-check.cron crypt-expiry-check.1 crypt-expiry-check.service crypt-expiry-check.timer %: %.in sed "s/#VERSION#/$(VERSION)/; s@#CRONDIR#@$(CRONDIR)@; s@#BINDIR#@$(BINDIR)@; s@#ETCDIR#@$(ETCDIR)@" $< > $@ @@ -43,7 +44,8 @@ all: man.commons crypt-expiry-check crypt-expiry-check.cron crypt-expiry-check.1 .PHONY: install dist clean install: all - install -D -m0755 crypt-expiry-check.cron $(DESTDIR)$(CRONDIR)/crypt-expiry-check + [ -z "$(CRONDIR)" ] || install -D -m0755 crypt-expiry-check.cron $(DESTDIR)$(CRONDIR)/crypt-expiry-check + [ -z "$(SYSTEMDDIR)" ] || install -D -m0644 crypt-expiry-check.service crypt-expiry-check.timer $(DESTDIR)$(SYSTEMDDIR)/crypt-expiry-check install -D -m0755 -t $(DESTDIR)$(BINDIR) crypt-expiry-check install -D -m0644 -t $(DESTDIR)$(MANDIR)/man1 crypt-expiry-check.1 install -D -m0644 -t $(DESTDIR)$(ETCDIR) crypt-expiry.checks -- cgit v1.2.3-54-g00ecf