From 40c34f3778e778762c7a7dcaf8697b2c90a717de Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Wed, 18 Apr 2012 16:30:17 -0700 Subject: [PATCH] Write out export_includes whenever the module is built. Bug: 6362268 Change-Id: Ic5d028c108423c694736a06c05ec13093d42f1b8 --- core/binary.mk | 3 +++ core/prebuilt.mk | 2 ++ 2 files changed, 5 insertions(+) diff --git a/core/binary.mk b/core/binary.mk index 5cb17bcd42..81f0724a7b 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -702,3 +702,6 @@ ifdef LOCAL_EXPORT_C_INCLUDE_DIRS else $(hide) touch $@ endif + +# Make sure export_includes gets generated when you are running mm/mmm +$(LOCAL_BUILT_MODULE) : $(export_includes) diff --git a/core/prebuilt.mk b/core/prebuilt.mk index 0c46341180..101cae9a4e 100644 --- a/core/prebuilt.mk +++ b/core/prebuilt.mk @@ -56,6 +56,8 @@ ifdef prebuilt_module_is_a_library $(intermediates)/export_includes: $(hide) mkdir -p $(dir $@) && rm -f $@ $(hide) touch $@ + +$(LOCAL_BUILT_MODULE) : $(intermediates)/export_includes endif endif