diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-11-17 14:14:16 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-11-17 14:14:16 +0000 |
commit | 4235aee8c25e5725d40fdd1a2b22f1807bda26bd (patch) | |
tree | 0dd72777d1961660a008abfd75ccf04914d43a4f /rules.mk | |
parent | 992e1f5e0476b90b6371de3413f493ee03ecdb29 (diff) | |
download | upstream-4235aee8c25e5725d40fdd1a2b22f1807bda26bd.tar.gz upstream-4235aee8c25e5725d40fdd1a2b22f1807bda26bd.tar.bz2 upstream-4235aee8c25e5725d40fdd1a2b22f1807bda26bd.zip |
fix hostapd rebuild check, isolate the common src/ directory for hostapd variants as well to fix compile errors when both variants are selected (#2722)
SVN-Revision: 9575
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -138,12 +138,10 @@ $(call shvar,$(1))=$$(call $(1)) export $(call shvar,$(1)) endef -define confvar -$(1):=$$(strip $$($(1)))_ -$(foreach v,$(2), - $(1):=$$(strip $$($(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))) |