aboutsummaryrefslogtreecommitdiff
path: root/testcase/strip.mk
blob: 44df67239c38848e9e3737607ec4df7b0321331b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
XY:=x 	y
X:=$(subst y, ,$(XY))
Y:=$(subst x, ,$(XY))

define func
foo
bar
endef

test:
	echo $(X)
	echo $(Y)
	echo $(strip $(X))
	echo $(strip $(Y))
	echo $(strip $(Y),$(X))
	echo $(strip $(XY))
	$(info $(strip $(call func)))

test2:
	echo $(strip $(X),$(Y))