From 0dbee7c936b3531bea965211564fd391b35bd53e Mon Sep 17 00:00:00 2001 From: Jeff Gaston Date: Mon, 26 Jun 2017 17:31:03 -0700 Subject: [PATCH] Slightly easier debugging of missing inputs to copy-file-to-target Test: call copy-file-to-target without any inputs and read the quoted output Bug: 36792868 Change-Id: I3a78f7ae4535ffe100b72458a3494ee398daf732 --- core/definitions.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/definitions.mk b/core/definitions.mk index 6199837ad..ed205d349 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -2805,7 +2805,7 @@ endef define copy-file-to-target @mkdir -p $(dir $@) $(hide) rm -f $@ -$(hide) cp $< $@ +$(hide) cp "$<" "$@" endef # The same as copy-file-to-target, but use the local @@ -2813,7 +2813,7 @@ endef define copy-file-to-target-with-cp @mkdir -p $(dir $@) $(hide) rm -f $@ -$(hide) cp -p $< $@ +$(hide) cp -p "$<" "$@" endef # The same as copy-file-to-target, but strip out "# comment"-style