From: Mark Wooding Date: Sun, 9 Dec 2018 14:49:55 +0000 (+0000) Subject: Makefile: Abbreviate `$(HOME)/...' things as `~/...' in silent-rules. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/a811ce27f6df55952032443b323d9431ef36ef4f Makefile: Abbreviate `$(HOME)/...' things as `~/...' in silent-rules. --- diff --git a/Makefile b/Makefile index 07a27fe..7f9e43b 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,8 @@ V = 0 V_AT = $(V_AT_$V) V_AT_0 = @ v_print = $(call v_print_$V,$1,$2) -v_print_0 = printf " %-8s %s\n" "$1" $(call quote,$2); +v_print_0 = \ + printf " %-8s %s\n" "$1" $(call quote,$(patsubst $(HOME)/%,~/%,$2)); v_tag = $(V_AT)$(call v_print_$V,$1,$@) ## Hack.