aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2019-09-25 01:54:24 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-09-25 01:54:24 +0000
commit3b8bff7a58942bba9d10d3c3ae5171ea83619c49 (patch)
tree89d3b298abc42c276eee7b98ac6e7f9d1fb06b23 /build
parent29c41138c11c4059a7b9224c35f6f94d9fe79b04 (diff)
parent9e9f97bb6a3012cea6bda931820204c365c11a60 (diff)
downloadndk-3b8bff7a58942bba9d10d3c3ae5171ea83619c49.tar.gz
Merge "Use $(file) from Make 4."
Diffstat (limited to 'build')
-rw-r--r--build/core/definitions.mk20
1 files changed, 1 insertions, 19 deletions
diff --git a/build/core/definitions.mk b/build/core/definitions.mk
index ba29d63b1..243a66f79 100644
--- a/build/core/definitions.mk
+++ b/build/core/definitions.mk
@@ -147,23 +147,6 @@ generate-file-dir = $(eval $(call ev-generate-file-dir,$1))
#
# -----------------------------------------------------------------------------
-list_file_words_per_echo := 10
-
-# 1: First word index
-# 2: Last word index
-# 3: Full text length
-# 4: Full text
-define list_file_echo
-
- $(hide) $(HOST_ECHO_N) "$(wordlist $1,$2,$4) " >> $$@
-$(if $(call lt,$2,$3),\
- $(call list_file_echo,\
- $(call plus,$1,$(list_file_words_per_echo)),\
- $(call plus,$2,$(list_file_words_per_echo)),\
- $3,\
- $4))
-endef
-
define generate-list-file-ev
__list_file := $2
@@ -173,8 +156,7 @@ __list_file := $2
$$(call generate-file-dir,$$(__list_file).tmp)
$$(__list_file).tmp:
- $$(hide) $$(call generate-empty-file,$$@)
- $(call list_file_echo,1,$(list_file_words_per_echo),$(words $1),$1)
+ $$(file >$$@,$1)
$$(__list_file): $$(__list_file).tmp
$$(hide) $$(call host-copy-if-differ,$$@.tmp,$$@)