summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-04-09 13:52:17 +0200
committerErich Eckner <git@eckner.net>2019-04-09 13:52:17 +0200
commit1fba609bb30940d3227cd82dfb18b9a0635350b2 (patch)
tree909d2c938e70326b3669a0fd3b87c8ab703ea4b3 /Makefile
parent352dd1c0b56a223271aef33c9a90873d4416ba51 (diff)
downloadshutdownasap-1fba609bb30940d3227cd82dfb18b9a0635350b2.tar.xz
systemd timer and service new
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index dd6d29d..16b49e0 100644
--- a/Makefile
+++ b/Makefile
@@ -23,20 +23,22 @@ DESTDIR =
ETCDIR = /etc
BINDIR = /usr/bin
MANDIR = /usr/share/man
+SYSTEMDDIR = /usr/lib/systemd/system
VERSION = 0.7
-all: shutdownasap shutdownasap.conf shutdownasap.1
+all: shutdownasap shutdownasap.conf shutdownasap.1 shutdownasap.service shutdownasap.timer
%: %.in
sed "s/#VERSION#/$(VERSION)/; s@#BINDIR#@$(BINDIR)@; s@#ETCDIR#@$(ETCDIR)@" $< > $@
-.PHONY: install dist clean
+.PHONY: install install-systemd dist clean
install: all
install -D -m0755 -t $(DESTDIR)$(BINDIR) shutdownasap
install -D -m0644 -t $(DESTDIR)$(MANDIR)/man1 shutdownasap.1
install -D -m0644 -t $(DESTDIR)$(ETCDIR) shutdownasap.conf
+ install -D -m0644 -t $(DESTDIR)$(SYSTEMDDIR) shutdownasap.service shutdownasap.timer
clean:
rm -f shutdownasap shutdownasap.1 shutdownasap.conf