diff options
author | Ewan Mellor <ewan@xensource.com> | 2006-12-23 19:06:31 +0000 |
---|---|---|
committer | Ewan Mellor <ewan@xensource.com> | 2006-12-23 19:06:31 +0000 |
commit | 42a02761117518e30cef87289f626f0ab7066e0d (patch) | |
tree | a800454637ac26ac70d03c0a0baa1638957a1efe /tools/python/Makefile | |
parent | a99ec19fc3c5b64ca35915ad915b172d2460f008 (diff) | |
download | xen-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/Makefile | 6 |
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 |