Better way to export variables in Docs.mk.
With this change, libcore_to_document will be evaluated only once.
As a side effect, this fixes the build log spam reported in:
https://code.google.com/p/android/issues/detail?id=63184
Change-Id: I4fcfbcd70f6d4b119487525825aeafa2926507b4
diff --git a/JavaLibrary.mk b/JavaLibrary.mk
index 0fbc9fb..4b5fbcd 100644
--- a/JavaLibrary.mk
+++ b/JavaLibrary.mk
@@ -243,7 +243,7 @@
# for shared defintion of libcore_to_document
include $(LOCAL_PATH)/Docs.mk
-LOCAL_SRC_FILES:=$(call libcore_to_document,$(LOCAL_PATH))
+LOCAL_SRC_FILES := $(libcore_to_document)
# rerun doc generation without recompiling the java
LOCAL_JAVA_LIBRARIES:=
LOCAL_JAVACFLAGS := $(local_javac_flags)