Applied a little bit modified patch from José Romildo on bug #168 (DESTDIR support).

This commit is contained in:
Sanel Zukan 2009-10-13 15:51:25 +00:00
parent 34e75159fd
commit 5de582c27b

View File

@ -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) ;