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
commitafb02558759e846d6ffd541a6b841bed995a6539 (patch)
tree268f307be6839dffb799e16d0625da4660165fc4 /include/subdir.mk
parentfe5198f0ffb4de6c0449e67b5ceef2230ab33760 (diff)
downloadupstream-afb02558759e846d6ffd541a6b841bed995a6539.tar.gz
upstream-afb02558759e846d6ffd541a6b841bed995a6539.tar.bz2
upstream-afb02558759e846d6ffd541a6b841bed995a6539.zip
more cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8238 3c298f89-4303-0410-b956-a3cf2f4a3e73
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