File: 0002-support_DESTDIR.patch

package info (click to toggle)
odpic 5.6.4-1
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 4,320 kB
  • sloc: ansic: 42,451; sql: 2,153; makefile: 218; python: 123; sh: 15
file content (30 lines) | stat: -rw-r--r-- 735 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: Joe Nahmias <joe@nahmias.net>
Date: Thu, 21 Mar 2024 15:17:15 +0000
Subject: install under DESTDIR, when defined

Origin: vendor
Forwarded: no
Last-Update: 2021-11-20

Last-Update: 2021-11-20
---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index e07c26d..896a635 100644
--- a/Makefile
+++ b/Makefile
@@ -34,9 +34,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