1
2FOO = foo
3NAME = def
4def =
5ifdef BOGUS
6 define $(subst e,e,$(NAME)) =
7 ifeq (1,1)
8 FOO = bar
9 endif
10 endef
11endif
12
13$(eval $(def))
14all: ; @echo $(FOO)
1
2FOO = foo
3NAME = def
4def =
5ifdef BOGUS
6 define $(subst e,e,$(NAME)) =
7 ifeq (1,1)
8 FOO = bar
9 endif
10 endef
11endif
12
13$(eval $(def))
14all: ; @echo $(FOO)