Makefile: Abbreviate `$(HOME)/...' things as `~/...' in silent-rules.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 9 Dec 2018 14:49:55 +0000 (14:49 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 9 Dec 2018 14:49:55 +0000 (14:49 +0000)
Makefile

index 07a27fe..7f9e43b 100644 (file)
--- 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.