From d475d94aab91230bd837a9d4d7ea58c3829e1c20 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 29 Aug 2007 03:51:49 +0000 Subject: avoid rdep in the top level make process (subdir.mk) - it leaks too much memory and increases the startup time for regular make commands. timestamp.pl is more lightweight here SVN-Revision: 8533 --- include/subdir.mk | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'include/subdir.mk') diff --git a/include/subdir.mk b/include/subdir.mk index 217d6bc..0a3eff3 100644 --- a/include/subdir.mk +++ b/include/subdir.mk @@ -37,13 +37,9 @@ endef # Parameters: define stampfile $(1)/stamp-$(3):=$(STAGING_DIR)/stamp/.$(2)_$(3) - $(if $(__rdep_$(1)),, - $(call rdep,$(1),$$($(1)/stamp-$(3)),) - __rdep_$(1):=1 - ) - - $$($(1)/stamp-$(3)): - @+$(MAKE) $$($(1)/flags-$(3)) $(1)/$(3) + $$($(1)/stamp-$(3)): $(TMP_DIR)/.build + @+$(SCRIPT_DIR)/timestamp.pl -n $$($(1)/stamp-$(3)) $(1) || \ + $(MAKE) $$($(1)/flags-$(3)) $(1)/$(3) @mkdir -p $$$$(dirname $$($(1)/stamp-$(3))) @touch $$($(1)/stamp-$(3)) -- cgit v1.1