[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Filtering-out files from a list
From: |
Rémi Delmas |
Subject: |
Filtering-out files from a list |
Date: |
Fri, 27 May 2011 08:17:48 +0200 |
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
- Filtering-out files from a list,
Rémi Delmas <=