From c9caaada9b88b0a62d0ddc771451321eb9704012 Mon Sep 17 00:00:00 2001 From: Shady Squirrel Date: Wed, 23 May 2018 21:31:20 +0200 Subject: [PATCH] Add missing DESTDIR variables Without it, building of distribution package fails. --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 8673566c..8160fd40 100644 --- a/Makefile +++ b/Makefile @@ -22,11 +22,11 @@ clean: rm -f onedrive onedrive.o onedrive.service install: all - mkdir -p /var/log/onedrive - chown root.users /var/log/onedrive - chmod 0775 /var/log/onedrive + mkdir -p $(DESTDIR)/var/log/onedrive + chown root.users $(DESTDIR)/var/log/onedrive + chmod 0775 $(DESTDIR)/var/log/onedrive install -D onedrive $(DESTDIR)$(PREFIX)/bin/onedrive - install -D -m 644 logrotate/onedrive.logrotate /etc/logrotate.d/onedrive + install -D -m 644 logrotate/onedrive.logrotate $(DESTDIR)/etc/logrotate.d/onedrive cp -af *.service $(DESTDIR)/usr/lib/systemd/user/ chmod 0644 $(DESTDIR)/usr/lib/systemd/user/onedrive*.service @@ -41,8 +41,8 @@ uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/onedrive rm -f $(DESTDIR)/usr/lib/systemd/user/onedrive.service rm -f $(DESTDIR)/usr/lib/systemd/user/onedrive@.service - rm -f /etc/logrotate.d/onedrive + rm -f $(DESTDIR)/etc/logrotate.d/onedrive rm -rf ~/.config/onedrive version: .git/HEAD .git/index - echo $(shell git describe --tags) >version \ No newline at end of file + echo $(shell git describe --tags) >version