mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8533 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -37,13 +37,9 @@ endef
|
||||
# Parameters: <subdir> <name> <target>
|
||||
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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user