From f1ac6cf7ec87a19a5a02adc3124a357eea989d6a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 30 Jul 2007 15:00:27 +0000 Subject: fix compile errors with make 3.80 SVN-Revision: 8230 --- include/subdir.mk | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'include') 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: 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: -- cgit v1.2.3