From 4c8f8c86e11caa7a1cb1c035a9181ed31ffb253e Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Sat, 12 Jan 2008 20:42:55 +0100 Subject: [PATCH] gitk: Disable msgfmt on MinGW. This auto-detects whether the build takes place for the MinGW port, which does not have msgfmt. Signed-off-by: Johannes Sixt --- gitk-git/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gitk-git/Makefile b/gitk-git/Makefile index ae2b80b108..a25e5a12a1 100644 --- a/gitk-git/Makefile +++ b/gitk-git/Makefile @@ -18,6 +18,10 @@ TCLTK_PATH_SQ = $(subst ','\'',$(TCLTK_PATH)) ## po-file creation rules XGETTEXT ?= xgettext +uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') +ifneq (,$(findstring MINGW,$(uname_S))) + NO_MSGFMT=1 +endif ifdef NO_MSGFMT MSGFMT ?= $(TCL_PATH) po/po2msg.sh else