mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-20 14:46:35 +02:00
Merge pull request #3 from ShadySquirrel/master
Update Makefile to better support packages that utilise make install / make uninstall
This commit is contained in:
commit
bc815541b6
13
Makefile
13
Makefile
|
@ -22,11 +22,11 @@ clean:
|
||||||
rm -f onedrive onedrive.o onedrive.service
|
rm -f onedrive onedrive.o onedrive.service
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
mkdir -p /var/log/onedrive
|
mkdir -p $(DESTDIR)/var/log/onedrive
|
||||||
chown root.users /var/log/onedrive
|
chown root.users $(DESTDIR)/var/log/onedrive
|
||||||
chmod 0775 /var/log/onedrive
|
chmod 0775 $(DESTDIR)/var/log/onedrive
|
||||||
install -D onedrive $(DESTDIR)$(PREFIX)/bin/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/
|
cp -af *.service $(DESTDIR)/usr/lib/systemd/user/
|
||||||
chmod 0644 $(DESTDIR)/usr/lib/systemd/user/onedrive*.service
|
chmod 0644 $(DESTDIR)/usr/lib/systemd/user/onedrive*.service
|
||||||
|
|
||||||
|
@ -41,8 +41,7 @@ uninstall:
|
||||||
rm -f $(DESTDIR)$(PREFIX)/bin/onedrive
|
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 $(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
|
version: .git/HEAD .git/index
|
||||||
echo $(shell git describe --tags) >version
|
echo $(shell git describe --tags) >version
|
||||||
|
|
Loading…
Reference in a new issue