From 3b4e8352cb55a85de9dd4b42d1c78c9fc56f892d Mon Sep 17 00:00:00 2001 From: Wim de With Date: Sat, 24 Dec 2016 21:43:11 +0100 Subject: [PATCH] Improve DESTDIR support in Makefile DESTDIR is now used to define the root of the folder to install to. This allows staged installs for packaging. PREFIX is now overridable to further aid packaging. --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3d218c3..7ef5900 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,7 @@ -PREFIX := /etc/openvpn -DESTDIR := $(PREFIX)/scripts +PREFIX ?= /etc/openvpn/scripts SRC = update-systemd-resolved -DEST = $(DESTDIR)/$(SRC) +DEST = $(DESTDIR)$(PREFIX)/$(SRC) .PHONY: all install info