diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-11-17 14:14:16 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-11-17 14:14:16 +0000 |
commit | d4125cfaa4817d6dfd8cd024c6aee8ea855bda7c (patch) | |
tree | 9ff92832b34ba74ec376d6ed86c022185508895f /rules.mk | |
parent | 5b001bbf09fd17dc84a3a0162bd932e73d76d429 (diff) |
fix hostapd rebuild check, isolate the common src/ directory for hostapd variants as well to fix compile errors when both variants are selected (#2722)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9575 3c298f89-4303-0410-b956-a3cf2f4a3e73
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))) |