[PATCH 2/3] respect DESTDIR when installing

Mike Frysinger
2012-09-24T23:38:20Z

This makes the `make install DESTDIR=...` form work. It keeps support
for all previous forms too (like DIST_ROOT).

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
include/install-sh | 2 ++
1 file changed, 2 insertions(+)

diff --git a/include/install-sh b/include/install-sh
index 18c051f..c952a71 100755
--- a/include/install-sh
+++ b/include/install-sh
@@ -85,6 +85,8 @@ REAL_UID=$OWNER
INSTALL=true
MANIFEST=:

+: ${DIST_ROOT:=${DESTDIR}}
+
[ -n "$DIST_MANIFEST" -a -z "$DIST_ROOT" ] && INSTALL=false
[ -n "$DIST_MANIFEST" ] && MANIFEST="_manifest"

--
1.7.12