[Omake] "filter" broken in new omake?
Aleksey Nogin
nogin at metaprl.org
Wed Dec 13 09:59:01 PST 2006
On 13.12.2006 09:51, Markus Mottl wrote:
> Hi,
>
> the new release has broken our code, and I unfortunately don't know how
> to fix this. The "filter" function expects the symbol "%" as wildcard,
> and implicit rules use the same symbol, too. Unfortunately, this binds
> the "%"-symbol within the rule for the "filter"-function, thus making it
> filter only one specific thing rather than all strings matching a
> pattern. How can I solve this?
>
> E.g.:
>
> %.o: %.c
> res = $(filter %.bla, ...)
> ...
>
> This will filter foo.bla rather than anything ending in ".bla" if
> "foo.o" is the current target.
>
Markus,
Just quote the % to pass it to the filter function literally, e.g.
%.o: %.c
res = $(filter $"%.bla", ...)
More information about the Omake
mailing list