help-make
[Top][All Lists]
Advanced

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

Re: removing a word matching a string?


From: Mike Tedder
Subject: Re: removing a word matching a string?
Date: Sat, 15 Dec 2007 02:36:15 +0900
User-agent: Opera Mail/9.24 (Win32)

On Fri, 14 Dec 2007 18:34:39 +0900, John Graham-Cumming <address@hidden> wrote:

Mike Tedder wrote:
Any suggestions from the make gurus out there?

How about something like this:

chomp = $(foreach a,$1,$(if $(findstring $2,$a),,$a))

The first parameter to chomp is the list to scan, the second is the
pattern to match, so you could do something like

$(call chomp,$(wildcard ...),build)

That seemed to do the trick.

Thank you!

--
- breakpoint / brainstorm




reply via email to

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