diff options
author | Ying Wang <wangying@google.com> | 2015-01-22 15:44:04 -0800 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2015-01-22 15:44:04 -0800 |
commit | 14d02a39b0e7874f905a19bc45270ec37704c2f3 (patch) | |
tree | 16ec66b8a1495a7175b0463770e0c9cffaada02d /core/binary.mk | |
parent | 8f5fc9e246e3ecebbb4cf4768da027e6e34d40d5 (diff) | |
download | build-14d02a39b0e7874f905a19bc45270ec37704c2f3.zip build-14d02a39b0e7874f905a19bc45270ec37704c2f3.tar.gz build-14d02a39b0e7874f905a19bc45270ec37704c2f3.tar.bz2 |
Add dependency of import_includes on LOCAL_MODULE_MAKEFILE
So the build system regenerates import_includes when you modify
Android.mk to add a new dependency library.
Change-Id: Ic92b097b659bb68a9065e1d66da59e0dc7e2836a
Diffstat (limited to 'core/binary.mk')
-rw-r--r-- | core/binary.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/binary.mk b/core/binary.mk index d020846..224f328 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -840,11 +840,12 @@ import_includes_deps := $(strip \ $(call intermediates-dir-for,SHARED_LIBRARIES,$(l),$(LOCAL_IS_HOST_MODULE),,$(LOCAL_2ND_ARCH_VAR_PREFIX))/export_includes) \ $(foreach l, $(my_static_libraries) $(my_whole_static_libraries), \ $(call intermediates-dir-for,STATIC_LIBRARIES,$(l),$(LOCAL_IS_HOST_MODULE),,$(LOCAL_2ND_ARCH_VAR_PREFIX))/export_includes)) -$(import_includes) : $(import_includes_deps) +$(import_includes): PRIVATE_IMPORT_EXPORT_INCLUDES := $(import_includes_deps) +$(import_includes) : $(LOCAL_MODULE_MAKEFILE) $(import_includes_deps) @echo Import includes file: $@ $(hide) mkdir -p $(dir $@) && rm -f $@ ifdef import_includes_deps - $(hide) for f in $^; do \ + $(hide) for f in $(PRIVATE_IMPORT_EXPORT_INCLUDES); do \ cat $$f >> $@; \ done else |