aboutsummaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/rules.mk b/rules.mk
index 4a0fa32e35..14ff5acdf2 100644
--- a/rules.mk
+++ b/rules.mk
@@ -139,7 +139,10 @@ export $(call shvar,$(1))
endef
define confvar
-$(foreach v,$(1),$(if $($(v)),y,n))
+$(1):=$$(strip $$($(1)))_
+$(foreach v,$(2),
+ $(1):=$$(strip $$($(1)))$(if $($(v)),y,n)
+)
endef
# file extension