Fumitoshi Ukai | 50e1aef | 2015-03-31 10:35:25 +0900 | [diff] [blame] | 1 | # http://www.gnu.org/software/make/manual/make.html#Syntax-of-Functions |
2 | comma:= , | ||||
3 | empty:= | ||||
4 | space:= $(empty) $(empty) | ||||
5 | foo:= a b c | ||||
6 | bar:= $(subst $(space),$(comma),$(foo)) | ||||
7 | # bar is now `a,b,c' | ||||
8 | |||||
9 | test: | ||||
10 | echo $(bar) |