git-gui: silence install recipes under "make -s"

Several install and uninstall recipes embed "echo" calls that fire as part of the recipe itself, so the install banners (DEST, INSTALL, LINK, REMOVE) were visible whenever the variables expand non-empty. Guard the whole "ifndef V" block on "-s" so the loud variants are selected only when "-s" is absent and V=1 is unset. The existing "-s" check also had its findstring arguments in the wrong order (needle "-s" never fit in haystack "s"), so swap them while moving the check to wrap the block. Signed-off-by: Harald Nordgren <haraldnordgren@gmail.com> Signed-off-by: Johannes Sixt <j6t@kdbg.org>

Harald Nordgren committed Jun 4, 2026 at 06:48 UTC 3372505ee84ac7f290863c8c7bb0d0dc74c35227
1 file changed +2 -4
Makefile
+2 -4
@@ -64,6 +64,7 @@ REMOVE_F0 = $(RM_RF) # space is required here
64 REMOVE_F1 =
65 CLEAN_DST = true
66
67 +ifneq ($(findstring s,$(firstword -$(MAKEFLAGS))),s)
68 ifndef V
69 QUIET = @
70 QUIET_GEN = $(QUIET)echo ' ' GEN '$@' &&
@@ -89,6 +90,7 @@ ifndef V
90 REMOVE_F0 = dst=
91 REMOVE_F1 = && echo ' ' REMOVE `basename "$$dst"` && $(RM_RF) "$$dst"
92 endif
93 +endif
94
95 TCLTK_PATH ?= wish
96 ifeq (./,$(dir $(TCLTK_PATH)))
@@ -97,10 +99,6 @@ else
99 TCL_PATH ?= $(dir $(TCLTK_PATH))$(notdir $(subst wish,tclsh,$(TCLTK_PATH)))
100 endif
101
100 -ifeq ($(findstring $(firstword -$(MAKEFLAGS)),s),s)
101 -QUIET_GEN =
102 -endif
103 -
102 -include config.mak
103
104 DESTDIR_SQ = $(subst ','\'',$(DESTDIR))