From c44d6d01b6ccc5d253cf57c4395a7efb1c3193fe Mon Sep 17 00:00:00 2001 From: kichik Date: Sun, 19 Jun 2005 12:31:09 +0000 Subject: [PATCH] fixed build of `dist` target when PREFIX is not empty git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4092 212acab6-be3b-0410-9dea-997c60f758d6 --- SConstruct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 45fdd4e4..ce78e3cf 100644 --- a/SConstruct +++ b/SConstruct @@ -87,17 +87,17 @@ Help(opts.GenerateHelpText(defenv)) defenv['DISTDIR'] = defenv.Dir('#nsis-$VERSION') def Distribute(dir, files): + defenv.Install('$DISTDIR/%s' % dir, files) if defenv.has_key('PREFIX') and defenv['PREFIX']: ins = defenv.Install('$PREFIX/%s' % dir, files) return ins - defenv.Install('$DISTDIR/%s' % dir, files) return [] def DistributeAs(path, file): + defenv.InstallAs('$DISTDIR/%s' % path, file) if defenv.has_key('PREFIX') and defenv['PREFIX']: ins = defenv.InstallAs('$PREFIX/%s' % path, file) return ins - defenv.InstallAs('$DISTDIR/%s' % path, file) return [] def DistributeExamples(dir, examples):