allwinner_a64/android/build/kati/testcase/subst2.mk
2018-08-08 16:48:17 +08:00

11 lines
258 B
Makefile

# http://www.gnu.org/software/make/manual/make.html#Syntax-of-Functions
,:= ,
empty:=
space:= $(empty) $(empty)
foo:= a b c
bar:= $(subst $(space),$,,$(foo))
# bar is now `,abc'
# space in `,$(foo)' replaced with `$', which will be empty
test:
echo $(bar)