On Tue, Jan 12, 2010 at 9:12 AM, Oleksandr Gavenko <[email protected]> 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
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make