git-gui: Ensure msgfmt failure stops GNU make
[gitweb.git] / Makefile
index 875edacac3823e7ea32d7047882b60ee5dd10b74..df6f6b727569a0a3d5cf8e19fc3ddfacab0b8639 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -47,8 +47,8 @@ ifndef V
        QUIET_GEN      = $(QUIET)echo '   ' GEN $@ &&
        QUIET_BUILT_IN = $(QUIET)echo '   ' BUILTIN $@ &&
        QUIET_INDEX    = $(QUIET)echo '   ' INDEX $(dir $@) &&
-       QUIET_MSGFMT0  = $(QUIET)printf '    MSGFMT %12s ' $@ &&
-       QUIET_MSGFMT1  = 2>&1 | sed -e 's/fuzzy translations/fuzzy/' | sed -e 's/ messages//g'
+       QUIET_MSGFMT0  = $(QUIET)printf '    MSGFMT %12s ' $@ && v=`
+       QUIET_MSGFMT1  = 2>&1` && echo "$$v" | sed -e 's/fuzzy translations/fuzzy/' | sed -e 's/ messages//g'
        QUIET_2DEVNULL = 2>/dev/null
 
        INSTALL_D0 = dir=