From ac6b43c28d658782d9e48879afcebd4a4ea4274e Mon Sep 17 00:00:00 2001 From: Doug Newgard Date: Sun, 28 May 2017 21:12:35 -0500 Subject: [PATCH] Add service filename to Makefile When the dir the file is being installed to doesn't exist (like when setting DESTDIR), "install" will take the last part as the filename. A file called "/usr/lib/systemd/user" doesn't work correctly. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 58761d45..f6286df6 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ clean: install: all install -D onedrive $(DESTDIR)$(PREFIX)/bin/onedrive - install -D -m 644 onedrive.service $(DESTDIR)/usr/lib/systemd/user + install -D -m 644 onedrive.service $(DESTDIR)/usr/lib/systemd/user/onedrive.service uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/onedrive