4 messages in com.perforce.jamming[jamming] MakeLocate bugfix
FromSent OnAttachments
Matze Braun06 Feb 2003 08:49.patch
Matze Braun06 Feb 2003 08:50 
Matze Braun06 Feb 2003 09:12.patch
Matt Armstrong06 Feb 2003 10:53 
Subject:[jamming] MakeLocate bugfix
From:Matt Armstrong (ma@lickey.com)
Date:02/06/2003 10:53:21 AM
List:com.perforce.jamming

Matze Braun <mat@braunis.de> writes:

Hi again,

I'm having a Jamfile like this:

LOCATE = out ; Main foo : source/bar.cpp ;

Here you are using a target name of "source/bar.cpp" but you will find that you are fighting the spirit of Jam doing this. The best way to do what you want is this:

LOCATE_TARGET = out ; SEARCH_SOURCE += source ; Main foo : bar.cpp ;

or, if you know that just bar.cpp is in the source dir:

LOCATE_TARGET = out ; LOCATE on bar.cpp = source ; Main foo : bar.cpp ;

The idea is to use SEARCH and LOCATE to attach directory names to targets.