Hello,

In the project I am working on, I build the list of files to compile with
the following expression:

BMS_SRCS ?=$(foreach w,*.cpp *.c,$(wildcard src/$(w))))

This line is actually generated, as the user can specify wildcards (he
specified *.cpp and *.c in that case).

Now, I would like to be able to achieve the same result, but to be able to
filter out some files based on a pattern. A general-purpose pattern would be
nice, but what I really need right now is to filter-out files matching the
regexp ".*_[A-Z]*\..*" (= any file where the name ends with an underscore
and capital letters).

Looking at documentation, it seems to me that this is not doable with
wildcards. Am I wrong? Is there any other way to achieve this?

Thanks a lot in advance,
-- 
Remi
_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to