From: Leandro Lucarella Date: Mon, 21 Sep 2009 22:10:35 +0000 (-0300) Subject: Apply abbr to commands in (v)exec function X-Git-Url: https://git.llucax.com/software/makeit.git/commitdiff_plain/9874db58d82e392d358eb307bda8ca3624c3c789?ds=sidebyside Apply abbr to commands in (v)exec function The (v)exec function removes the full directory component from the command to execute. This can be a little confusing when running local scripts. This patch applies the abbr function to the command instead. --- diff --git a/Lib.mak b/Lib.mak index 58b804f..cb49f2e 100644 --- a/Lib.mak +++ b/Lib.mak @@ -119,7 +119,7 @@ abbr = $(if $(call eq,$(call abbr_helper,$1),$1),$1,$(addprefix \ # and third arguments are optional and are the target name and command name to # pretty print. vexec = $(if $V,\ - echo ' $(notdir $(if $3,$(strip $3),$(firstword $1))) \ + echo ' $(call abbr,$(if $3,$(strip $3),$(firstword $1))) \ $(call abbr,$(if $2,$(strip $2),$@))' ; )$1 # Same as vexec but it silence the echo command (prepending a @ if $V).