On Thursday 12 of June 2014 07:27:18 erik quanstrom wrote:
> > i have a mkfile which does:
> > 
> > alljs=`{find -name '*.js'}
> > 
> > my_target:Q: ... $alljs
> > 
> >     my_recipe;
> > 
> > and it breaks for files with spaces in pathname -- each space-separated
> > token of pathname is treated as separate prerequisite.
> 
> if you rc-quote the terms, it should work.
> 
> ; find|grep b
> './a b'
> ; cat mkfile
> x=`{find|grep b}
> 
> all:
>       echo $x|wc
>       for(i in $x)
>               echo $i
> ; mk
> echo ./a b|wc
> for(i in ./a b)
>       echo $i
>       1       2       6
> ./a b


here the var is processed by Rc inside recipe; in my case i need it processed 
by Mk inside prerequisite list


-- 
dexen deVries

[[[↓][→]]]


Reply via email to