[jamming] Re: MakeLocate bugfix

Matze Braun matze at braunis.de
Thu Feb 6 09:13:01 PST 2003



On Thu, 6 Feb 2003, Matze Braun wrote:

> Hi again,
> 
> I'm having a Jamfile like this:
> 
> LOCATE_TARGET = out ;
> Main foo : source/bar.cpp ;
> 
> This fails at the moment because jam doesn't create the out/src directory. 
> Attached to this mail is a small patch which fixes this problem.
Sorry to spam this list... But my first patch has been highly buggy. This 
one should be okay now.

Greetings,
	Matze
-------------- next part --------------
--- jam-2.5/Jambase.old	2003-02-06 17:36:39.000000000 +0100
+++ jam-2.5/Jambase	2003-02-06 18:08:59.000000000 +0100
@@ -948,8 +948,10 @@
 	if $(>)
 	{
 	    LOCATE on $(<) = $(>) ;
-	    Depends $(<) : $(>[1]:G=dir) ;
-	    MkDir $(>[1]:G=dir) ;
+
+	    local _file = $(<[1]:R=$(>)) ;
+	    Depends $(<) : $(_file:DG=dir) ;
+	    MkDir $(_file:DG=dir) ;
 	}
 }
 


More information about the jamming mailing list