diff --git a/core/base_rules.mk b/core/base_rules.mk index 666e2acb1..e5e42d45c 100644 --- a/core/base_rules.mk +++ b/core/base_rules.mk @@ -386,8 +386,8 @@ $(my_prefix)$(LOCAL_MODULE_CLASS)_$(LOCAL_MODULE)_compat_files := true # LOCAL_COMPATIBILITY_SUPPORT_FILES is a list of [:]. my_compat_dist += $(foreach f, $(LOCAL_COMPATIBILITY_SUPPORT_FILES),\ $(eval p := $(subst :,$(space),$(f)))\ - $(eval s := $(LOCAL_PATH)/$(word 1,$(p)))\ - $(eval d := $(COMPATIBILITY_TESTCASES_OUT_$(LOCAL_COMPATIBILITY_SUITE))/$(or $(word 2,$(p)),$(word 1,$(p))))\ + $(eval s := $(word 1,$(p)))\ + $(eval d := $(COMPATIBILITY_TESTCASES_OUT_$(LOCAL_COMPATIBILITY_SUITE))/$(or $(word 2,$(p)),$(notdir $(word 1,$(p)))))\ $(s):$(d)) ifneq (,$(wildcard $(LOCAL_PATH)/AndroidTest.xml))