1 XY:=x y 2 X:=$(subst y, ,$(XY)) 3 Y:=$(subst x, ,$(XY)) 4 5 define func 6 foo 7 bar 8 endef 9 10 test: 11 echo $(X) 12 echo $(Y) 13 echo $(strip $(X)) 14 echo $(strip $(Y)) 15 echo $(strip $(Y),$(X)) 16 echo $(strip $(XY)) 17 $(info $(strip $(call func))) 18 19 test2: 20 echo $(strip $(X),$(Y)) 21