aboutsummaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-10-22 08:57:16 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-10-22 08:57:16 +0000
commitd081edf7ebeccada6c5ad313192764f0b0f6a3e1 (patch)
treefa1652ad27a8aea408113c3dd72c606e7c786b92 /rules.mk
parent364fb4dacb7ab96ba715af56e3d99aca84f6207a (diff)
downloadupstream-d081edf7ebeccada6c5ad313192764f0b0f6a3e1.tar.gz
upstream-d081edf7ebeccada6c5ad313192764f0b0f6a3e1.tar.bz2
upstream-d081edf7ebeccada6c5ad313192764f0b0f6a3e1.zip
build: clean up and optimize ipkg control generator code
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43017
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
index f44e8edef4..8844a47a1f 100644
--- a/rules.mk
+++ b/rules.mk
@@ -21,6 +21,7 @@ qstrip=$(strip $(subst ",,$(1)))
empty:=
space:= $(empty) $(empty)
+comma:=,
merge=$(subst $(space),,$(1))
confvar=$(call merge,$(foreach v,$(1),$(if $($(v)),y,n)))
strip_last=$(patsubst %.$(lastword $(subst .,$(space),$(1))),%,$(1))