aboutsummaryrefslogtreecommitdiffstats
path: root/include/subdir.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-07-30 18:39:20 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-07-30 18:39:20 +0000
commita7b635f07546eadbdd8c6dc0cfd623290622f026 (patch)
tree82bbdbe5955fd7f9820889ea2a714d39b9fec0f7 /include/subdir.mk
parentbec2fe7c6cd64642c7d354eef16090df9b0fdb1a (diff)
downloadupstream-a7b635f07546eadbdd8c6dc0cfd623290622f026.tar.gz
upstream-a7b635f07546eadbdd8c6dc0cfd623290622f026.tar.bz2
upstream-a7b635f07546eadbdd8c6dc0cfd623290622f026.zip
more cleanup
SVN-Revision: 8238
Diffstat (limited to 'include/subdir.mk')
-rw-r--r--include/subdir.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/subdir.mk b/include/subdir.mk
index a27333d9e6..da37573c78 100644
--- a/include/subdir.mk
+++ b/include/subdir.mk
@@ -7,8 +7,13 @@
SUBTARGETS:=clean download prepare compile install update refresh prereq
+subtarget-default = $(filter-out ., \
+ $(if $($(1)/builddirs-$(2)),$($(1)/builddirs-$(2)), \
+ $(if $($(1)/builddirs-default),$($(1)/builddirs-default), \
+ $($(1)/builddirs))))
+
define subtarget
- $(call warn_eval,$(1),t,T,$(1)/$(2): $($(1)/) $(foreach bd,$(if $($(1)/builddirs-$(2)),$(filter-out .,$($(1)/builddirs-$(2))),$($(1)/builddirs)),$(1)/$(bd)/$(2)))
+ $(call warn_eval,$(1),t,T,$(1)/$(2): $($(1)/) $(foreach bd,$(call subtarget-default,$(1),$(2)),$(1)/$(bd)/$(2)))
endef