From 52ef08e1d4640fe795337e8489213e0dbf7273fe Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Thu, 21 May 2015 14:36:34 +0200 Subject: [PATCH] Makefile: added systemd service unit installation; removed version string on /usr/share/doc --- Makefile | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index e860558..047769d 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,14 @@ -PN = btrbk -VERSION = 0.17.1 +PN = btrbk -PREFIX ?= /usr -CONFDIR = /etc -CRONDIR = /etc/cron.daily -BINDIR = $(PREFIX)/sbin -DOCDIR = $(PREFIX)/share/doc/$(PN)-$(VERSION) -SCRIPTDIR = $(PREFIX)/share/$(PN)/scripts -MAN1DIR = $(PREFIX)/share/man/man1 -MAN5DIR = $(PREFIX)/share/man/man5 +PREFIX ?= /usr +CONFDIR = /etc +CRONDIR = /etc/cron.daily +BINDIR = $(PREFIX)/sbin +DOCDIR = $(PREFIX)/share/doc/$(PN) +SCRIPTDIR = $(PREFIX)/share/$(PN)/scripts +SYSTEMDDIR = $(PREFIX)/lib/systemd/system +MAN1DIR = $(PREFIX)/share/man/man1 +MAN5DIR = $(PREFIX)/share/man/man5 all: @echo 'nothing to do for "all"' @@ -18,6 +18,11 @@ install-bin: install -Dm644 btrbk.conf.example "$(DESTDIR)$(CONFDIR)/btrbk/btrbk.conf.example" install -Dm755 $(PN) "$(DESTDIR)$(BINDIR)/$(PN)" +install-systemd: + @echo 'installing systemd service units...' + install -Dm644 contrib/systemd/btrbk.service "$(DESTDIR)$(SYSTEMDDIR)/btrbk.service" + install -Dm644 contrib/systemd/btrbk.timer "$(DESTDIR)$(SYSTEMDDIR)/btrbk.timer" + install-share: @echo 'installing auxiliary scripts...' install -Dm644 ssh_filter_btrbk.sh "$(DESTDIR)$(SCRIPTDIR)/ssh_filter_btrbk.sh" @@ -34,4 +39,4 @@ install-doc: install -Dm644 README.md "$(DESTDIR)$(DOCDIR)/README.md" gzip -9 "$(DESTDIR)$(DOCDIR)/README.md" -install: install-bin install-share install-man install-doc +install: install-bin install-systemd install-share install-man install-doc