symlink_outputs: Add .KATI_SYMLINK_OUTPUTS to build/make/core
Test: m
Bug: 160568334
Change-Id: Ie6fb4f16bb77845787d277857e17e6aac0a8c11a
diff --git a/core/Makefile b/core/Makefile
index 9471148..4075c49 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -2384,6 +2384,7 @@
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 bfbeee3..daac652 100644
--- a/core/definitions.mk
+++ b/core/definitions.mk
@@ -2610,6 +2610,7 @@
@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