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.
This commit is contained in:
Doug Newgard 2017-05-28 21:12:35 -05:00 committed by GitHub
parent 83a958df59
commit ac6b43c28d

View file

@ -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