Browse Source

add DESTDIR in the makefile

master
Alarig Le Lay 4 years ago
parent
commit
b3d9824e1e
  1. 20
      Makefile

20
Makefile

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

Loading…
Cancel
Save