]> git.0d.be Git - empathy.git/blob - data/icons/utils.mk
"Build" a local copy of the icons to be used from sources
[empathy.git] / data / icons / utils.mk
1 # define a variable containing a single space
2 blank :=
3 space := $(blank) $(blank)
4 # split string $3 with $1 as separator and return the token in position $2
5 define token
6 $(word $2, $(subst $1, ,$3))
7 endef
8 # split string $3 with $1 as separator and reassemble it using the indexes in $2
9 define reorder
10 $(subst $(space),$1,$(foreach i,$2,$(call token,$1,$i,$3)))
11 endef