summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index f56bac7..51585d5 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.0.12
+VERSION = 4.4.3
-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 -t $(DESTDIR)$(SYSTEMDDIR) crypt-expiry-check.service crypt-expiry-check.timer
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
@@ -51,7 +53,7 @@ install: all
clean:
ls -A | \
grep "^\($(shell sed 's|\.|\\.|; s|\*|.*|; s|$$|\\|' .gitignore | tr '\n' '\|')\)\$$" | \
- xargs -r rm
+ xargs -r rm -rf --one-file-system
dist: clean
git status --porcelain 2> /dev/null | grep -q "\S" && (git add .; git commit -m"neue Version: $(VERSION)") || true