Re: Filtering out based on substrings

2023-09-08 Thread Sébastien Hinderer
Paul Smith (2023/09/05 11:43 -0400): > You can't use filter-out for this as you discovered. But you can use a > loop and findstring with if, like this: > > $(foreach F,$(FILES),$(if $(findstring /bytecode/,$F),,$F)) That works very well indeed! Thanks! Sébastien.

Re: Filtering out based on substrings

2023-09-05 Thread Paul Smith
On Tue, 2023-09-05 at 17:36 +0200, Sébastien Hinderer wrote: > Is there a way to filter-out just the files whose path contains > /bytecode/, for isntance? You can't use filter-out for this as you discovered. But you can use a loop and findstring with if, like this: $(foreach F,$(FILES),$(if

Filtering out based on substrings

2023-09-05 Thread Sébastien Hinderer
Dear all, Assume FILES is a variable that contains a list of files with their path. Is there a way to filter-out just the files whose path contains /bytecode/, for isntance? My naïve attempts to call filter-out on $(FILES) with patterns like %/bytecode/% failed and made me realise it's not possi