Blame telepathy-account-widgets/data/icons/utils.mk

Packit 79f644
# define a variable containing a single space
Packit 79f644
blank :=
Packit 79f644
space := $(blank) $(blank)
Packit 79f644
# split string $3 with $1 as separator and return the token in position $2
Packit 79f644
define token
Packit 79f644
$(word $2, $(subst $1, ,$3))
Packit 79f644
endef
Packit 79f644
# split string $3 with $1 as separator and reassemble it using the indexes in $2
Packit 79f644
define reorder
Packit 79f644
$(subst $(space),$1,$(foreach i,$2,$(call token,$1,$i,$3)))
Packit 79f644
endef