Diane Holt | 3 Apr 2000 23:03
Picon
Favicon

Re: foo.exe depends on itself

--- Danny Dulai <nirva <at> ishiboo.com> wrote:
> SubDir TOP ;
> SubInclude TOP foo ;
> ----------------------------------------
> SubDir TOP foo ;
> Main foo : foo.c ;
> ----------------------------------------
> 
> The above two Jamfiles will cause the same error you witnessed, right?

Not for me they don't:
$ cat Jamfile
SubDir TOP ;
SubInclude TOP foo ;
$ cat foo/Jamfile
SubDir TOP foo ; 
Main foo : foo.c ;
$ jam
...found 17 target(s)...
...updating 2 target(s)...
Cc /temp/foo/foo.o
Link /temp/foo/foo
Chmod /temp/foo/foo
...updated 2 target(s)...

I've tried everything I could think of, including pseudo-targets named
"foo", having explicit dependencies of "foo" to "foo.exe", having the
target "foo" build into TOP/foo/bin, etc., and I can't reproduce what you
guys (I think it's up to 3 now, right?) have seen happen. I can't remember
ever having seen Jam confuse directories and files, and since I can't get
(Continue reading)

Danny Dulai | 3 Apr 2000 23:20
Favicon

Re: foo.exe depends on itself

On 04/03/00, Diane Holt said:
>$ cat Jamfile
>SubDir TOP ;
>SubInclude TOP foo ;
>$ cat foo/Jamfile
>SubDir TOP foo ; 
>Main foo : foo.c ;
>$ jam
>...found 17 target(s)...
>...updating 2 target(s)...
>Cc /temp/foo/foo.o
>Link /temp/foo/foo
>Chmod /temp/foo/foo
>...updated 2 target(s)...
>
>I've tried everything I could think of, including pseudo-targets named
>"foo", having explicit dependencies of "foo" to "foo.exe", having the
>target "foo" build into TOP/foo/bin, etc., and I can't reproduce what you
>guys (I think it's up to 3 now, right?) have seen happen. I can't remember
>ever having seen Jam confuse directories and files, and since I can't get
>it to do it even by trying to, I still have to strongly suspect it's
>something in the rules your using.

heres my transaction:

% ls -lR
.:
total 8
-rw-r--r--   1 nirva    users          34 Apr  3 16:08 Jamfile
drwxr-xr-x   2 nirva    users        4096 Apr  3 16:09 foo/
(Continue reading)

Dave Lewis | 3 Apr 2000 23:17
Favicon

Re: foo.exe depends on itself

check your rules for MkDir, Laura may have put this into
the source a while back:  (from feb 99)

<<
How about if you hack the MkDir rule to grist *its* targets? So
that instead of building "axe" it builds "<_dir>axe"? Try these
changes in the MkDir rule:

	
	   929c929
           <           s = $(<:P) ;
           ---
           >           s = $(<:PG=_dir) ;
	   933c933
           <               switch $(s)
           ---
           >               switch $(s:G=)

Let me know if it works okay. (You don't have a directory called
"_dir" do you?) 

If this fix isn't a problem for you (or anyone else), I'll put it
in the public depot source.

--Laura
>>

dave

(Continue reading)


Gmane