help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: remove substrings


From: Philip Guenther
Subject: Re: remove substrings
Date: Wed, 23 Jun 2010 23:48:44 -0700

On Wed, Jun 23, 2010 at 12:12 AM, ranjith kumar <address@hidden> wrote:
> Let:
>         FOURTEEN = one four
>         ONE_FOURTEEN = One hundred $(FOURTEEN)
> Now I want to get  a string (say RESULT) containing all the strings of
> ONE_FOURTEEN (One hundred one four) - all the strings FOURTEEN(one
> four).
> ie) RESULT = (One hundred one four) - (one four) = One hundred
>
> How to this kind of operation in make file, when u dont know the
> strings FOURTEEN and ONE_FOURTEEN contain.

It sounds like you're looking for $(filter-out), ala $(filter-out
${FOURTEEN},${ONE_FOURTEEN}).  Note that ignores the order of the
words in both, effectively doing set difference.


Philip Guenther



reply via email to

[Prev in Thread] Current Thread [Next in Thread]