From eda6ac2487610d289c654f67e42d256980d4cb00 Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Mon, 28 Jan 2013 10:58:01 -0800 Subject: [PATCH] Use += to append to target-specific PRIVATE_CLEAN_FILES Instead of incorrectly including global variable PRIVATE_CLEAN_FILES Change-Id: I9b5e12448dad5001de051a566d8a94a89b20ecac --- core/base_rules.mk | 3 +-- core/dynamic_binary.mk | 9 ++++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/core/base_rules.mk b/core/base_rules.mk index 07ef024675..5c508cd25f 100644 --- a/core/base_rules.mk +++ b/core/base_rules.mk @@ -434,8 +434,7 @@ endif ########################################################### cleantarget := clean-$(LOCAL_MODULE) $(cleantarget) : PRIVATE_MODULE := $(LOCAL_MODULE) -$(cleantarget) : PRIVATE_CLEAN_FILES := \ - $(PRIVATE_CLEAN_FILES) \ +$(cleantarget) : PRIVATE_CLEAN_FILES += \ $(LOCAL_BUILT_MODULE) \ $(LOCAL_INSTALLED_MODULE) \ $(intermediates) diff --git a/core/dynamic_binary.mk b/core/dynamic_binary.mk index 0ca1858b10..6ede57f8d9 100644 --- a/core/dynamic_binary.mk +++ b/core/dynamic_binary.mk @@ -128,8 +128,7 @@ endif endif # LOCAL_STRIP_MODULE -$(cleantarget): PRIVATE_CLEAN_FILES := \ - $(PRIVATE_CLEAN_FILES) \ - $(linked_module) \ - $(symbolic_output) \ - $(compress_output) +$(cleantarget): PRIVATE_CLEAN_FILES += \ + $(linked_module) \ + $(symbolic_output) \ + $(compress_output)