main shinobi / tests / mk / gnu / functions / foreach / t002 / mk
 1
 2.PHONY: all target
 3all: target
 4
 5x := BAD
 6
 7define mktarget
 8target: x := $(x)
 9target: ; @echo "$(x)"
10endef
11
12x := GLOBAL
13
14$(foreach x,FOREACH,$(eval $(value mktarget)))