[Omake] The % variable
Aleksey Nogin
anogin at hrl.com
Wed Dec 5 09:23:43 PST 2007
On 04.12.2007 10:30, Alain Frisch wrote:
> ComputeCFLAGS(file) =
> TAGS = $(filter %.tag, $(dependencies $(file)))
> echo TAGS for $(file) "///" $(TAGS) "///" %
> value $(CFLAGS)
>
> %$(EXT_OBJ): %.c :scanner: scan-c-%.c
> $(CC) $(ComputeCFLAGS $@) $(PREFIXED_INCLUDES) -c $(CCOUT)$@ $<
>
[...]
> The code above does not work because the % symbol in the call to filter
> is bound by the implicit rule. Is it the intended behavior?
Alain,
I'll leave it to Jason to answer your "Is it the intended behavior"
questions (IMHO this behavior is wrong, but I may be missing something).
For a workaround, you should be able to quote the % symbol - e.g. $'%.tag'
Aleksey
--
Aleksey Nogin, Research Scientist
Advanced Technologies Department, Information & System Sciences Lab
HRL Laboratories, LLC, Malibu, CA
More information about the Omake
mailing list