summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharles Bailey <charles@hashpling.org>2008-01-09 14:31:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-01-11 08:51:08 (GMT)
commit66e15a6b83a0b79232377137cc1710343a81aea4 (patch)
tree5f55f989a8da0457cd878e1aff04cb60f1defee7 /Makefile
parentf0c842681936ffd684aac3f0d8340c99780d5b53 (diff)
downloadgit-66e15a6b83a0b79232377137cc1710343a81aea4.zip
git-66e15a6b83a0b79232377137cc1710343a81aea4.tar.gz
git-66e15a6b83a0b79232377137cc1710343a81aea4.tar.bz2
gitk: Fix the Makefile to cope with systems lacking msgfmt
The po2msg.sh 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/po2msg.sh from git-gui. Signed-off-by: Charles Bailey <charles@hashpling.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
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/po2msg.sh
+else
+ MSGFMT ?= msgfmt
+endif
+
PO_TEMPLATE = po/gitk.pot
ALL_POFILES = $(wildcard po/*.po)
ALL_MSGFILES = $(subst .po,.msg,$(ALL_POFILES))