[jamming] MakeLocate bugfix

Matze Braun matze at braunis.de
Thu Feb 6 08:49:23 PST 2003


Hi again,

I'm having a Jamfile like this:

LOCATE = 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.
-------------- next part --------------
--- Jambase.old	2003-02-06 17:36:39.000000000 +0100
+++ Jambase	2003-02-06 17:48:41.000000000 +0100
@@ -948,8 +948,10 @@
 	if $(>)
 	{
 	    LOCATE on $(<) = $(>) ;
-	    Depends $(<) : $(>[1]:G=dir) ;
-	    MkDir $(>[1]:G=dir) ;
+
+	    local _file = $(<:R=$(>[1]):G=dir) ;
+	    Depends $(<) : $(_file:D) ;
+	    MkDir $(_file:D) ;
 	}
 }
 


More information about the jamming mailing list