From 5de582c27bfd7a34b9ce2e1afb8d0125a34213a0 Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Tue, 13 Oct 2009 15:51:25 +0000 Subject: [PATCH] =?UTF-8?q?Applied=20a=20little=20bit=20modified=20patch?= =?UTF-8?q?=20from=20Jos=C3=A9=20Romildo=20on=20bug=20#168=20(DESTDIR=20su?= =?UTF-8?q?pport).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/Install.jam | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/build/Install.jam b/build/Install.jam index 1f8d975..4572900 100644 --- a/build/Install.jam +++ b/build/Install.jam @@ -17,7 +17,15 @@ EXEMODE = 755 ; rule MakeInstallPrivate { local i t s ; - local dir = $(1) ; + local dir ; + + # use DESTDIR as make use it and is targeted for packagers primarly; FDirName is not used since + # it do not understainds external variables well + if $(DESTDIR) { + dir = $(DESTDIR)$(1) ; + } else { + dir = $(1) ; + } MkDir $(dir) ;