Blob Blame History Raw
From 3b22edab8934734f60ce6984be85f5e772305a42 Mon Sep 17 00:00:00 2001
From: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Date: Tue, 8 Oct 2019 17:31:37 -0300
Subject: [PATCH] Replace the install_root with DESTDIR

The standard variable passed to make for an alternate installation
directory is DESTDIR and not install_root.
This patch helps to integrate libdfp downstream.

Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
---
 Makefile.in      | 6 +++---
 README.developer | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 8c76ab5..4b2d3d8 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -15,19 +15,19 @@ docdir = @docdir@
 ifndef libdir
 libdir = $(exec_prefix)/lib
 endif
-inst_libdir = $(install_root)$(libdir)
+inst_libdir = $(DESTDIR)$(libdir)
 
 # Where to install the header files.
 ifndef includedir
 includedir = $(prefix)/include
 endif
-inst_includedir = $(install_root)$(includedir)
+inst_includedir = $(DESTDIR)$(includedir)
 
 # Where to install the README document
 ifndef docdir
 docdir = $(prefix)/share/doc/
 endif
-inst_docdir = $(install_root)$(docdir)
+inst_docdir = $(DESTDIR)$(docdir)
 
 dfp_name = @PACKAGE_NAME@
 dfp_version = @PACKAGE_VERSION@
diff --git a/README.developer b/README.developer
index 89c1f04..7294231 100644
--- a/README.developer
+++ b/README.developer
@@ -632,15 +632,15 @@ make check
 		later.  The path to the build was passed to configure using
 		the --with-glibc-build switch.
 
-make install [install_root=<path>]
+make install [DESTDIR=<path>]
 
-	[install_root] (Optional) : Install to <path>/$prefix.  This is used
+	[DESTDIR] (Optional) : Install to <path>/$prefix.  This is used
 	by libdfp developers and distro builders so that they can build libdfp
 	and install it to an alternate location in preparation for packaging.
 
-make install-headers [install_root=<path>]
+make install-headers [DESTDIR=<path>]
 
-	[install_root] (Optional) : Install libdfp headers into
+	[DESTDIR] (Optional) : Install libdfp headers into
 	<path>/$prefix/include/dfp.  This is used by application or library
 	developers whose projects depend on libdfp who don't want to install
 	libdfp proper or may not have permission to do so.
-- 
2.14.5