evoldoers / biomake

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

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

Closed ihh closed 11 months ago

ihh commented 11 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).