[jamming] smallbugfix for SubDir rule (fwd)

Matze Braun matze at braunis.de
Thu Feb 6 07:24:49 PST 2003


-Just sent this again as my other mail didn't make it through to the list 
it seems... Sorry if it arrives twice-

Hi,

I just found a bug in jam 2.5rc1. I'm building a project and I'm using 
SubDir /SubInclude rules. This all works nicely until I set ALL_LOCATE_TARGET. 
All object files then go to the ALL_LOCATE_TARGET, but jam isn't creating 
subdirectories in the ALL_LOCATE_TARGET directory. For example

mysubdir/foo.cpp

with ALL_LOCATE_TARGET = out/linux ;
will be compiled into:

out/linux/foo.o

but should be compiled into

out/linux/mysubdir/foo.o

Attached to this mail is a 2 line fix for the problem.

Greetings,
	Matze
-------------- next part --------------
--- Jambase.old	2003-02-03 22:39:08.000000000 +0100
+++ Jambase	2003-02-03 22:39:32.000000000 +0100
@@ -1163,8 +1163,8 @@
 	# subsequently be redefined.

 

 	SEARCH_SOURCE = $(SUBDIR) ;

-	LOCATE_SOURCE = $(ALL_LOCATE_TARGET) $(SUBDIR) ;

-	LOCATE_TARGET = $(ALL_LOCATE_TARGET) $(SUBDIR) ;

+	LOCATE_SOURCE = [ FDirName $(ALL_LOCATE_TARGET) $(SUBDIR) ] ;

+	LOCATE_TARGET = [ FDirName $(ALL_LOCATE_TARGET) $(SUBDIR) ] ;

 	SOURCE_GRIST = [ FGrist $(<[2-]) ] ;

 

 	# Reset per-directory ccflags, hdrs



More information about the jamming mailing list