add DESTDIR in the makefile

This commit is contained in:
Alarig Le Lay 2019-01-24 20:00:13 +01:00
parent 640a61e8f8
commit b3d9824e1e

View file

@ -1,16 +1,16 @@
prefix = /usr/local
install:
mkdir -p $(prefix)/sbin
mkdir -p $(prefix)/etc/proxmox-routing
mkdir -p /etc/systemd/system/
mkdir -p /etc/logrotate.d/
mkdir -p $(DESTDIR)$(prefix)/sbin
mkdir -p $(DESTDIR)$(prefix)/etc/proxmox-routing
mkdir -p $(DESTDIR)/etc/systemd/system/
mkdir -p $(DESTDIR)/etc/logrotate.d/
cp creationRoutesVM.sh $(prefix)/sbin/creationRoutesVM
cp inotify-triggered-vm-route-creation.sh $(prefix)/sbin/
cp send-icmp.py $(prefix)/sbin/
cp creationRoutesVM.sh $(DESTDIR)$(prefix)/sbin/creationRoutesVM
cp inotify-triggered-vm-route-creation.sh $(DESTDIR)$(prefix)/sbin/
cp send-icmp.py $(DESTDIR)$(prefix)/sbin/
cp creds.example $(prefix)/etc/proxmox-routing/creds
cp creds.example $(DESTDIR)$(prefix)/etc/proxmox-routing/creds
cp vm-route-creation.service /etc/systemd/system/
cp vm-routes-creation.logrotate /etc/logrotate.d/
cp vm-route-creation.service $(DESTDIR)/etc/systemd/system/
cp vm-routes-creation.logrotate $(DESTDIR)/etc/logrotate.d/