aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python/Makefile
diff options
context:
space:
mode:
authorEwan Mellor <ewan@xensource.com>2006-12-23 19:06:31 +0000
committerEwan Mellor <ewan@xensource.com>2006-12-23 19:06:31 +0000
commit42a02761117518e30cef87289f626f0ab7066e0d (patch)
treea800454637ac26ac70d03c0a0baa1638957a1efe /tools/python/Makefile
parenta99ec19fc3c5b64ca35915ad915b172d2460f008 (diff)
downloadxen-42a02761117518e30cef87289f626f0ab7066e0d.tar.gz
xen-42a02761117518e30cef87289f626f0ab7066e0d.tar.bz2
xen-42a02761117518e30cef87289f626f0ab7066e0d.zip
Only build the message database if msgfmt is installed.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/python/Makefile')
-rw-r--r--tools/python/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/python/Makefile b/tools/python/Makefile
index 3732c06aa9..9e957fedf3 100644
--- a/tools/python/Makefile
+++ b/tools/python/Makefile
@@ -7,12 +7,14 @@ all: build
.PHONY: build
build:
CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py build
- for file in `cd xen/xm; find messages -name xen-xm.po`; do \
+ if which msgfmt >/dev/null ; then \
+ for file in `cd xen/xm; find messages -name xen-xm.po`; do \
dest=`echo "build/$$file" | \
sed -e 's#xen-xm.po#LC_MESSAGES/xen-xm.mo#'`; \
mkdir -p `dirname "$$dest"`; \
msgfmt -c -o "$$dest" "xen/xm/$$file"; \
- done
+ done; \
+ fi
.PHONY: install
ifndef XEN_PYTHON_NATIVE_INSTALL