diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-07-30 15:00:27 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-07-30 15:00:27 +0000 |
commit | 1f1b2ca36062d86c6965b63754fd729d71ca0aed (patch) | |
tree | 054b380d615d12eb94a1ab07ed8e293049ce2572 /include | |
parent | 32788c07cea73789a3e04e31213505a8931e4436 (diff) | |
download | upstream-1f1b2ca36062d86c6965b63754fd729d71ca0aed.tar.gz upstream-1f1b2ca36062d86c6965b63754fd729d71ca0aed.tar.bz2 upstream-1f1b2ca36062d86c6965b63754fd729d71ca0aed.zip |
fix compile errors with make 3.80
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8230 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r-- | include/subdir.mk | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/subdir.mk b/include/subdir.mk index b2bc04b357..16e4f4b6c4 100644 --- a/include/subdir.mk +++ b/include/subdir.mk @@ -25,6 +25,11 @@ endef SUBTARGETS:=clean download prepare compile install update refresh prereq +define subtarget + $(call warn_eval,$(1),t,T,$(1)/$(2): $($(1)/) $(foreach bd,$(if $($(1)/builddirs-$(2)),$($(1)/builddirs-$(2)),$($(1)/builddirs)),$(1)/$(bd)/$(2))) + +endef + # Parameters: <subdir> define subdir $(call warn,$(1),d,D $(1)) @@ -38,9 +43,7 @@ define subdir $(call warn_eval,$(1)/$(bd),l,T,$(1)/$(bd)-$(target): $(1)/$(bd)/$(target)) ) ) - $(foreach target,$(SUBTARGETS), - $(call warn_eval,$(1),t,T,$(1)/$(target): $($(1)/) $(foreach bd,$(if $($(1)/builddirs-$(target)),$($(1)/builddirs-$(target)),$($(1)/builddirs)),$(1)/$(bd)/$(target)) ;) - ) + $(foreach target,$(SUBTARGETS),$(call subtarget,$(1),$(target))) endef # Parameters: <subdir> <name> |