[Cook] parallel confusion
Jerry Pendergraft
jerry at endocardial.com
Sun Jun 22 01:15:15 EST 2003
If you have any patterns in the target side you must double all % in
dependency and in recipe body
%1/%2.o : %2.c
{
some_var = [patsubst %%2/%3 ....
--
Jerry Pendergraft jerry.pendergraft at endocardial.com
Endocardial Solutions voice: 651-523-6935
1350 Energy Lane, Suite 110 fax: 651-644-7897
St Paul, MN 55108-5254 mobile: 651-491-0163
On Sat, 21 Jun 2003, Jody Hagins wrote:
> On Fri, 20 Jun 2003 23:07:54 -0500 (CDT)
> Jerry Pendergraft <jerry at endocardial.com> wrote:
> >
> > local cmd = [unsplit " " [catenate "PATH=" [getenv PATH]]
> > \[ -d [ts_C_dir] \] || mkdir [ts_C_dir] &&
> > /usr/local/bin/build_test_script --debug [ts_src] [C_file] &&
> > [compile-cmd %1 %2] [target_flags]
> > -D[catenate ARCH [arch-to-identifier %1]]
> > '-DRCS_ID\="'%3_ID'"' -c [C_file]
> > -o [target] &&
> > [post_proc] [C_file]] ;
> >
>
>
>
> This is interesting, mainly because I can not seem to use the "%"
> matches in functions as part of a patsubst. For example...
>
> some_var =
> [patsubst
> %0%1/%2/%3
> %0%1/[subst 1 6 %2]/%2/[myfunc %3]
> [some_list]];
>
> does not work. I get the entire value for %2 insead of the "subst"
> part. Also, I get an absolute "%3" passed into "myfunc" so I do not get
> the last part of the file name.
>
>
> Any ideas?
>
>
>
More information about the Cook-users
mailing list