[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How remove some pattern from variable and it must stay, recursively
From: |
Philip Guenther |
Subject: |
Re: How remove some pattern from variable and it must stay, recursively expanded. |
Date: |
Wed, 13 Jan 2010 01:26:27 -0800 |
On Tue, Jan 12, 2010 at 9:12 AM, Oleksandr Gavenko <address@hidden> wrote:
> I need such behavior: remove some pattern from variable and it must stay
> recursively expanded.
>
> It seems impossible.
Yep, it's impossible.
...
> One solution is move part that contain $(var)
> syntax to another variable:
>
> if 'yes' 'DEBUG'
> # now in genlist_cmd, not in CFLAGS
> genlist_cmd += --asm ${@:.o=.s} --list ${@:.o=.lst}
> endif
>
> and change command to:
>
> $(CC) $(CFLAGS) $(genlist_cmd) -c -o $@ $<
Yeah, that's probably how I would tackle it.
Philip Guenther