From 7d7f94547a9fa8e72fcd6e39df2393ed5e1c22fa Mon Sep 17 00:00:00 2001 From: Jingwen Chen Date: Tue, 22 Sep 2020 13:47:13 +0000 Subject: [PATCH] symlink_outputs: Add .KATI_SYMLINK_OUTPUTS to build/make/core Test: m Bug: 160568334 Change-Id: Ie6fb4f16bb77845787d277857e17e6aac0a8c11a --- core/Makefile | 1 + core/definitions.mk | 1 + 2 files changed, 2 insertions(+) diff --git a/core/Makefile b/core/Makefile index 947114822..4075c492c 100644 --- a/core/Makefile +++ b/core/Makefile @@ -2384,6 +2384,7 @@ $1: exit 1; \ fi ln -sfn $2 $1 +$1: .KATI_SYMLINK_OUTPUTS := $1 ) $1 endef diff --git a/core/definitions.mk b/core/definitions.mk index bfbeee3a3..daac65249 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -2610,6 +2610,7 @@ $(3): $(1) @mkdir -p $(dir $$@) @rm -rf $$@ $(hide) ln -sf $(2) $$@ +$(3): .KATI_SYMLINK_OUTPUTS := $(3) endef # Copy an apk to a target location while removing classes*.dex