Description: install under DESTDIR, when defined
Author: Joe Nahmias <joe@nahmias.net>
Origin: vendor
Forwarded: no
Last-Update: 2021-11-20
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Makefile
+++ b/Makefile
@@ -21,9 +21,9 @@ vpath %.c src
 vpath %.h include src
 
 PREFIX ?= /usr/local
-INSTALL_LIB_DIR = $(PREFIX)/lib
-INSTALL_INC_DIR = $(PREFIX)/include
-INSTALL_SHARE_DIR = $(PREFIX)/share/odpi
+INSTALL_LIB_DIR = $(DESTDIR)$(PREFIX)/lib
+INSTALL_INC_DIR = $(DESTDIR)$(PREFIX)/include
+INSTALL_SHARE_DIR = $(DESTDIR)$(PREFIX)/share/odpi
 
 BUILD_DIR = build
 LIB_DIR = lib
