List Info

Thread: Best way to handle creation of an unknown number of files




Best way to handle creation of an unknown number of files
user name
2006-10-05 02:36:06
Hi there,

Running JAM 2,5, I have a build process I want to automate
that creates
an unknown number of files, then tries to compile them. To
illustrate,
if I have a file foo.c:

   int func_a() {...}
   int func_b() {...}
   ...
   int func_z() {...}

And when I run "split foo.c" I get a series of
files:

foo_func_a.c:
   int func_a() {...}

foo_func_b.c:
   int func_b() {...}

...

foo_func_z.c:
   int func_z() {...}

Next I want to run the JAM rules:

Cc foo_func_a.obj : foo_func_a.c ;
Cc foo_func_b.obj : foo_func_b.c ;
...
Cc foo_func_z.obj : foo_func_z.c ;

I can, I know, use GLOB to get all the .c files, but since
it only runs
at start-up, my current solution is to call a second
invocation of JAM
to do the compiling pass. It there any other, better way to
do this?

Thanks in advance for any hints you can give me.

Ken

_______________________________________________
jamming mailing list  -  jammingperforce.com
http://maillist.perforce.com/mailman/listinfo/jamming
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )