aboutsummaryrefslogtreecommitdiff
path: root/Makefile.local
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2017-08-29 21:27:07 +0300
committerDavid Bremner <david@tethera.net>2017-08-29 22:05:37 -0300
commite027711148858b7aa2b3a4cd2617c87f38746181 (patch)
tree43ccfeb2e790231912184e94d8439aa9c19aa0da /Makefile.local
parent0082a55785a5ae64da22fe72af6c0ae928f13c03 (diff)
build: avoid an extra shell out in quiet variable function
$(word 1, $1) yields the same result as the more complicated $(shell echo $1 | sed -e s'/ .*//')
Diffstat (limited to 'Makefile.local')
-rw-r--r--Makefile.local6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.local b/Makefile.local
index af12ca7f..c51b9afb 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -182,14 +182,14 @@ verify-newer:
# user how to enable verbose compiles.
ifeq ($(V),)
quiet_DOC := "Use \"$(MAKE) V=1\" to see the verbose compile lines.\n"
-quiet = @printf $(quiet_DOC)$(eval quiet_DOC:=)"$1 $@\n"; $($(shell echo $1 | sed -e s'/ .*//'))
+quiet = @printf $(quiet_DOC)$(eval quiet_DOC:=)"$1 $@\n"; $($(word 1, $(1)))
endif
# The user has explicitly enabled quiet compilation.
ifeq ($(V),0)
-quiet = @printf "$1 $@\n"; $($(shell echo $1 | sed -e s'/ .*//'))
+quiet = @printf "$1 $@\n"; $($(word 1, $(1)))
endif
# Otherwise, print the full command line.
-quiet ?= $($(shell echo $1 | sed -e s'/ .*//'))
+quiet ?= $($(word 1, $(1)))
%.o: %.cc $(global_deps)
@mkdir -p $(patsubst %/.,%,.deps/$(@D))