2 messages in com.perforce.jamming[jamming] MkDir not working!?
FromSent OnAttachments
bjoern terwege15 May 2003 23:24 
Diane Holt16 May 2003 00:49 
Subject:[jamming] MkDir not working!?
From:Diane Holt (hol@yahoo.com)
Date:05/16/2003 12:49:18 AM
List:com.perforce.jamming

Bulk lacks a dependency on the directory into which the files are being copied. It also doesn't do a MkDir for the directory -- but the one you have won't do you any good without the dependency on the directory.

The File rule, to which the files passed to Bulk are passed, also lacks a dependency on the directory to which the file is being copied, a MkDir for it, and a Clean on the target file.

(Basically, Bulk and File could use a little work :)

Diane

--- bjoern terwege <bter@yahoo.de> wrote:

Hi,

i have some questions on jam.

at the beginning i wasn't able to compile jam with the dedicated makefile for Win2k. therefor i used Visual C++ 6.0 to compile a jam executable from the 2.5rc3 sources. i used the jambase.c file from the delivery but that doesn't make a change if i generate it by my own with mkjambase.

then i build up a project with several jamfiles and a jamrule file. i have to copy some header files from the original directory to another directory which doesn't exist the first time. if i want to use the following files this is not working. It seems that MkDir is not working. There is no output (even not with -d3) for the MkDir statement. The error output is always:

The system cannot find the path specified.

That means, the system wants to copy the file with the Bulk rule but the MkDir rule is not working.

I tried to use InstallFile but this is as well not working. Has anyone an idea why this is not working!?

br bjoern terwege

####### Begin Jamrule ############ COPYINC = $(TOP)\\INC ; COPYLIB = $(TOP)\\LIB ; ... ####### End Jamrule ##############

####### Begin Jamfile ############

SOURCES = file1.c file2.c file3.c ;

HEADERS = file1.h file2.h file3.h ;

Library bla : $(SOURCES) ;

# The InstallAll rule can also be copied to the Jamrule file.

rule InstallAll { MkDir $(COPYINC) ; Bulk $(COPYLIB) : $(1) ; Bulk $(COPYINC) : $(HEADERS) ; }

InstallAll bla.lib ;

####### End Jamfile ##############

__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de