aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python/Makefile
diff options
context:
space:
mode:
authorEwan Mellor <ewan@xensource.com>2006-12-23 21:32:05 +0000
committerEwan Mellor <ewan@xensource.com>2006-12-23 21:32:05 +0000
commit84172b63067acfd0ae764a3d9e25739279a21e35 (patch)
tree3fdc447382f04d2570c3e816ee8c71c1a86bf19b /tools/python/Makefile
parent5bde93a974f06d2b974a34b0b4a2147236c421ed (diff)
downloadxen-84172b63067acfd0ae764a3d9e25739279a21e35.tar.gz
xen-84172b63067acfd0ae764a3d9e25739279a21e35.tar.bz2
xen-84172b63067acfd0ae764a3d9e25739279a21e35.zip
Don't try to copy the .mo files if they haven't been built.
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 9e957fedf3..1c3a6c4ffc 100644
--- a/tools/python/Makefile
+++ b/tools/python/Makefile
@@ -26,8 +26,10 @@ install: install-messages
endif
install-messages: all
- mkdir -p "$(DESTDIR)/usr/share/locale"
- cp -R build/messages/* "$(DESTDIR)/usr/share/locale/"
+ if which msgfmt >/dev/null ; then \
+ mkdir -p "$(DESTDIR)/usr/share/locale"; \
+ cp -R build/messages/* "$(DESTDIR)/usr/share/locale/"; \
+ fi
.PHONY: test
test: