mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Only build the message database if msgfmt is installed.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
a99ec19fc3
commit
42a0276111
1 file changed
+4
-2
@@ -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
|
||||
|
||||