Fix install in case no /usr/local/* exists

When installed the *onedrive.conf* file content was copied to the **file** /usr/local/etc, instead of creating the **missing** directory etc/ and then copying inside the file *onedrive.conf*.
This commit is contained in:
Giuseppe Luigi 2016-03-04 21:48:45 +01:00
parent 5ed7dfcf3c
commit 05de30a408

View file

@ -26,8 +26,8 @@ clean:
rm -f onedrive.o onedrive
install: onedrive onedrive.conf
install onedrive $(DESTDIR)
install -m 644 onedrive.conf $(CONFDIR)
install onedrive $(DESTDIR)/onedrive
install -m 644 onedrive.conf $(CONFDIR)/onedrive.conf
install -m 644 onedrive.service /usr/lib/systemd/user
uninstall: