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
This commit is contained in:
Felix Fietkau
2007-11-17 14:14:16 +00:00
parent 992e1f5e04
commit 4235aee8c2
2 changed files with 16 additions and 14 deletions

View File

@@ -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)))