evoldoers / biomake

GNU-Make-like utility for managing builds and complex workflows
BSD 3-Clause "New" or "Revised" License
100 stars 9 forks source link

Incorrect expansion of $(foreach...) variable inside nested $(addsuffix...) #87

Closed ihh closed 8 months ago

ihh commented 8 months ago

The following Makefile...

TARGETS := $(foreach suffix,x y,$(addsuffix .$(suffix),a b c))
all:
        echo $(TARGETS)

...should yield the following result (same as GNU make)...

a.x b.x c.x a.y b.y c.y

Instead, $(suffix) is not expanded. This may occur in other nested filename functions too (I haven't checked).