%% John Graham-Cumming <[EMAIL PROTECTED]> writes:
jg> Torsten Mohr wrote:
>>> You could define LIST_C and LIST_L like this:
>>>
>>> LIST_C = $(filter %.c,$(LIST))
>>> LIST_L = $(filter %.l,$(LIST))
>>
>> This does not work for me, %.c seems to only match a file name
>> that ends with a single "c". I'd like to also match "cl".
jg> Well you could do
jg> LIST_C = $(filter %.c %.cl %.clrm,$(LIST))
Or even:
LIST_C = $(filter $(addprefix %.,$(foreach S,$(suffix $(LIST)),$(if
$(findstring c,$(S)),$(S)))),$(LIST))
I think that will work. Untested though.
--
-------------------------------------------------------------------------------
Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make