ia64/xen-unstable

changeset 13177:967426f60378

Only build the message database if msgfmt is installed.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Sat Dec 23 19:06:31 2006 +0000 (2006-12-23)
parents 93ca2dcd681d
children 26f3c7f5de9d
files tools/python/Makefile
line diff
     1.1 --- a/tools/python/Makefile	Sat Dec 23 11:37:01 2006 +0000
     1.2 +++ b/tools/python/Makefile	Sat Dec 23 19:06:31 2006 +0000
     1.3 @@ -7,12 +7,14 @@ all: build
     1.4  .PHONY: build
     1.5  build:
     1.6  	CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py build
     1.7 -	for file in `cd xen/xm; find messages -name xen-xm.po`; do \
     1.8 +	if which msgfmt >/dev/null ; then \
     1.9 +          for file in `cd xen/xm; find messages -name xen-xm.po`; do \
    1.10              dest=`echo "build/$$file" | \
    1.11                    sed -e 's#xen-xm.po#LC_MESSAGES/xen-xm.mo#'`; \
    1.12              mkdir -p `dirname "$$dest"`; \
    1.13              msgfmt -c -o "$$dest" "xen/xm/$$file"; \
    1.14 -        done
    1.15 +          done; \
    1.16 +        fi
    1.17  
    1.18  .PHONY: install
    1.19  ifndef XEN_PYTHON_NATIVE_INSTALL