Use += to append to target-specific PRIVATE_CLEAN_FILES

Instead of incorrectly including global variable PRIVATE_CLEAN_FILES

Change-Id: I9b5e12448dad5001de051a566d8a94a89b20ecac
This commit is contained in:
Ying Wang 2013-01-28 10:58:01 -08:00
parent 7a184cb70f
commit eda6ac2487
2 changed files with 5 additions and 7 deletions

View file

@ -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)

View file

@ -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)