path: root/Makefile
diff options
authorCharles Bailey <>2008-01-09 14:31:09 (GMT)
committerJunio C Hamano <>2008-01-11 08:51:08 (GMT)
commit66e15a6b83a0b79232377137cc1710343a81aea4 (patch)
tree5f55f989a8da0457cd878e1aff04cb60f1defee7 /Makefile
parentf0c842681936ffd684aac3f0d8340c99780d5b53 (diff)
gitk: Fix the Makefile to cope with systems lacking msgfmt
The script and the .gitignore in the po directory have been shamelessly copied from the current git-gui. This enables the top level "make NO_MSGFMT" to work consistently for git across the git-gui and gitk sub-projects. This is the same effective patch that has previously been posted as a git.git patch which more succinctly described the copying of po/.gitignore and po/ from git-gui. Signed-off-by: Charles Bailey <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Makefile')
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6158504..ae2b80b 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,12 @@ TCLTK_PATH_SQ = $(subst ','\'',$(TCLTK_PATH))
## po-file creation rules
XGETTEXT ?= xgettext
-MSGFMT ?= msgfmt
+ifdef NO_MSGFMT
+ MSGFMT ?= $(TCL_PATH) po/
+ MSGFMT ?= msgfmt
PO_TEMPLATE = po/gitk.pot
ALL_POFILES = $(wildcard po/*.po)
ALL_MSGFILES = $(subst .po,.msg,$(ALL_POFILES))