NotDef:=aaa NotDef_aaa:=$(NotDef) NotDef_template = NotDef:=$(1) call_NotDef_template_yyy := $(call NotDef_template,yyy) NotDef_yyy:=$(NotDef) $(eval $(call NotDef_template,zzz)) not_echo: @echo NotDef_aaa=$(NotDef_aaa) @echo NotDef_yyy=$(NotDef_yyy) @echo NotDef=$(NotDef) @echo call_NotDef_template_yyy=$(call_NotDef_template_yyy) YesDef:=aaa YesDef_aaa:=$(YesDef) define YesDef_template = YesDef:=$(1) endef call_YesDef_template_yyy := $(call YesDef_template,yyy) YesDef_yyy:=$(YesDef) $(eval $(call YesDef_template,zzz)) yes_echo: @echo YesDef_aaa=$(YesDef_aaa) @echo YesDef_yyy=$(YesDef_yyy) @echo YesDef=$(YesDef) @echo call_YesDef_template_yyy=$(call_YesDef_template_yyy)