projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix hostapd rebuild check, isolate the common src/ directory for hostapd variants...
[openwrt/svn-archive/archive.git]
/
rules.mk
diff --git
a/rules.mk
b/rules.mk
index 4a0fa32e3554b124a5d687825220224df8558dc0..d36c99495310c2558f8c32b5ac5dbff65e53780a 100644
(file)
--- a/
rules.mk
+++ b/
rules.mk
@@
-138,9
+138,10
@@
$(call shvar,$(1))=$$(call $(1))
export $(call shvar,$(1))
endef
export $(call shvar,$(1))
endef
-define confvar
-$(foreach v,$(1),$(if $($(v)),y,n))
-endef
+empty:=
+space:= $(empty) $(empty)
+merge=$(subst $(space),,$(1))
+confvar=$(call merge,$(foreach v,$(1),$(if $($(v)),y,n)))
# file extension
ext=$(word $(words $(subst ., ,$(1))),$(subst ., ,$(1)))
# file extension
ext=$(word $(words $(subst ., ,$(1))),$(subst ., ,$(1)))