From f3f82496ac1198ffa65d5b2a052838248e0685aa Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Thu, 8 Apr 2010 12:38:17 +0200 Subject: s4:WAF buildsystem - support out of "source4" directory builds Bug: https://bugzilla.samba.org/show_bug.cgi?id=4081 With this patch we are able to invoke s4 builds from the outside of the "source4" directory (but the target remains the "source4/bin" path). One constraint: all commands: "autogen-waf.sh", "configure", "make" have to be run from the same directory! Regarding "make": you have to run it using "make -C [targets]" if the invoke directory is not "source4" itself. --- buildtools/scripts/configure.waf | 3 +++ 1 file changed, 3 insertions(+) (limited to 'buildtools/scripts') diff --git a/buildtools/scripts/configure.waf b/buildtools/scripts/configure.waf index a6367e7314..79a7a35c5d 100755 --- a/buildtools/scripts/configure.waf +++ b/buildtools/scripts/configure.waf @@ -1,5 +1,6 @@ #!/bin/sh +PREVPATH=`dirname $0` WAF=BUILDTOOLS/bin/waf @@ -8,4 +9,6 @@ WAF=BUILDTOOLS/bin/waf JOBS=1 export JOBS +cd BUILDPATH $WAF configure $* +cd $PREVPATH -- cgit