From e1cbfc717b7b5c3268adffadcc413aeb6cf1fc07 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Tue, 28 Apr 2020 15:55:49 -0700 Subject: [PATCH] java_source_list_file is only created when full_classses_jar is set So avoid creating an unused phony target when we aren't compiling anything. Test: treehugger Change-Id: I4e6d9d93ee5a7d11db6b4a6c7da1ba947d96e575 --- core/package_internal.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/package_internal.mk b/core/package_internal.mk index 59e0701e4..62dac99c4 100644 --- a/core/package_internal.mk +++ b/core/package_internal.mk @@ -377,9 +377,11 @@ ifeq ($(need_compile_res),true) # they want to use this module's R.java file. $(LOCAL_BUILT_MODULE): $(R_file_stamp) +ifneq ($(full_classes_jar),) # The R.java file must exist by the time the java source # list is generated $(java_source_list_file): $(R_file_stamp) +endif endif # need_compile_res