• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1XY:=x 	y
2X:=$(subst y, ,$(XY))
3Y:=$(subst x, ,$(XY))
4
5define func
6foo
7bar
8endef
9
10test:
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
19test2:
20	echo $(strip $(X),$(Y))
21