Makefile: respect BINDIR in systemd service

pull/93/head
Benedikt Morbach 2016-05-04 15:11:20 +02:00 committed by Axel Burri
parent cb0851c8b6
commit df7473f7df
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ install-systemd:
@echo 'installing systemd service units...' @echo 'installing systemd service units...'
install -Dm644 contrib/systemd/btrbk.service "$(DESTDIR)$(SYSTEMDDIR)/btrbk.service" install -Dm644 contrib/systemd/btrbk.service "$(DESTDIR)$(SYSTEMDDIR)/btrbk.service"
install -Dm644 contrib/systemd/btrbk.timer "$(DESTDIR)$(SYSTEMDDIR)/btrbk.timer" install -Dm644 contrib/systemd/btrbk.timer "$(DESTDIR)$(SYSTEMDDIR)/btrbk.timer"
sed -i -e "s#/usr/sbin/btrbk#$(BINDIR)/btrbk#g" "$(DESTDIR)$(SYSTEMDDIR)/btrbk.service"
install-share: install-share:
@echo 'installing auxiliary scripts...' @echo 'installing auxiliary scripts...'