$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Larry Evans (jcampbell3_at_[hidden])
Date: 2002-01-25 20:40:44
Larry Evans wrote:
> I'm just starting to use jam; however, it's putting the target files in a target directory
> that I don't want.
[snip]
>
> I want the files to be in:
> bin/gcc/debug/runtime-link-dynamic/
> instead of:
> bin/test_lje.exe/gcc/debug/runtime-link-dynamic/
> How do I get jam to do this?
I modified boost-base.jam as follows:
<----------- *vc-diff* ---------------
*** boost-base.jam 2002/01/26 01:19:30 1.1
--- boost-base.jam 2002/01/26 01:35:06
***************
*** 1222,1228 ****
# SOURCE_GRIST identifies the subproject directory; TARGET_GRIST will identify
# the target and subvariant, since unique versions of files will be built for
# that combination.
! local TARGET_GRIST = [ join-path $(SOURCE_GRIST) $(<:G=) $(>[1]) ] ;
local subvariant = $(<:G=$(TARGET_GRIST)) ;
# Do nothing if build instructions and dependencies for this target have
--- 1222,1228 ----
# SOURCE_GRIST identifies the subproject directory; TARGET_GRIST will identify
# the target and subvariant, since unique versions of files will be built for
# that combination.
! local TARGET_GRIST = [ join-path $(SOURCE_GRIST) $(>[1]) ] ;
local subvariant = $(<:G=$(TARGET_GRIST)) ;
# Do nothing if build instructions and dependencies for this target have
***************
*** 1236,1242 ****
# LOCATE_TARGET affects where built targets are generated. We move it
# relative to the default location based on the subvariant
local LOCATE_TARGET
! = [ join-path $(LOCATE_TARGET) $(BIN_DIRECTORY) $(<:G=) $(>[1]) ] ;
local target-files = [ FAppendSuffix $(subvariant) : $(SUF$(target-type)) ] ;
--- 1236,1242 ----
# LOCATE_TARGET affects where built targets are generated. We move it
# relative to the default location based on the subvariant
local LOCATE_TARGET
! = [ join-path $(LOCATE_TARGET) $(BIN_DIRECTORY) $(>[1]) ] ;
local target-files = [ FAppendSuffix $(subvariant) : $(SUF$(target-type)) ] ;
>----------- *vc-diff* ---------------
and this worked for the simple example posted previously.
Would anybody please let me know if they see any problem with this change?