diff --git a/Jamrules b/Jamrules index 25dc2569be..8fddc114ff 100644 --- a/Jamrules +++ b/Jamrules @@ -1432,17 +1432,30 @@ rule OBOSInstallRelSymLink #------------------------------------------------------------------------------- rule FObjectsDir { - # FObjectsDir + # FObjectsDir + # + # Returns the output directory for object files the specified + # subdirectory. + # + # : The tokens of the subdir relative to the top. + # + + return [ FDirName $(OBOS_OBJECT_TARGET) $(1[2-]) ] ; +} + +rule FCurrentObjectsDir +{ + # FCurrentObjectsDir # # Returns the output directory for object files for the current # subdirectory. - return [ FDirName $(OBOS_OBJECT_TARGET) $(SUBDIR_TOKENS[2-]) ] ; + return [ FObjectsDir $(SUBDIR_TOKENS) ] ; } rule SetupObjectsDir { - LOCATE_TARGET = [ FObjectsDir ] ; + LOCATE_TARGET = [ FCurrentObjectsDir ] ; LOCATE_SOURCE = $(LOCATE_TARGET) ; SEARCH_SOURCE = [ Filter $(SEARCH_SOURCE) : $(LOCATE_TARGET) ] $(LOCATE_TARGET) ;