diff options
author | Caveh Jalali <caveh@chromium.org> | 2019-09-12 22:20:37 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-09-27 08:21:40 +0000 |
commit | 49efdd8a8eaed593beeb8686e40d343f38e82a62 (patch) | |
tree | aff49e40ac86530ae1a7ff57c8c667d89865a840 | |
parent | 06965455e406e113eb0aa497e29d7b4d291c6b32 (diff) | |
download | chrome-ec-49efdd8a8eaed593beeb8686e40d343f38e82a62.tar.gz |
Makefile.rules: use patsubst instead of subst
the patsubst function is a better function for removing a path prefix
as it is anchored at the beginning of the search space. the original
"subst" function can match everywhere in the path which leads to weird
transformations. patsubst is anchored at the beginning of the string
which better suits the intent here.
BRANCH=none
BUG=none
TEST=make buildall passes, $(out) now only removed at beginning of
output paths.
Change-Id: Ic5fe7aeb5eb8c87aa8bb49ea0865dc07327cb3e5
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1803178
Commit-Queue: Caveh Jalali <caveh@google.com>
Reviewed-by: Caveh Jalali <caveh@google.com>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
-rw-r--r-- | Makefile.rules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules index 4f5b54ad0b..dbe6ee5161 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -43,7 +43,7 @@ else echo = echo $(1); ifeq ($(V),) Q := @ -quiet = @echo ' $(2)' $(subst $(out)/,,$@) ; $(cmd_$(1)) +quiet = @echo ' $(2)' $(patsubst $(out)/%,%,$@) ; $(cmd_$(1)) silent = 1>/dev/null silent_err = 2>/dev/null else |