[jamming] Automatic creation of target directories
Ingo Weinhold
bonefish at cs.tu-berlin.de
Thu May 10 05:13:52 PDT 2007
On 2007-05-10 at 13:40:19 [+0200], Alen Ladavac <alenl-ml at croteam.com>
wrote:
> Ingo wrote:
> > Since you have to locate your targets anyway, why don't you use
> > MakeLocate,
> > which also invokes MkDir?
>
> Interesting notion. As we moved from the traditional approach where
> each file is refered to only by its name, to a rooted tree for all
> files in the workspace, and referring to them by full path, we dropped
> MakeLocate along the way, because it didn't work.
In my experience it's not a wise decision to use paths (be they relative or
absolute) in jam for anything but directories (which is probably also why
there's a FDirName rule, but no FFileName). Grist works well for avoiding
name clashes, and referring to targets independently of their location is
one of the coolest of jam's features, IMHO.
CU, Ingo
More information about the jamming
mailing list