diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-05-19 02:16:37 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-05-19 02:16:37 +0100 |
commit | 9125594e4e27944df656d99f5ba28e1923b6de18 (patch) | |
tree | 301bfc15b57068d93585ffacd28183136003844c /tools/python/Makefile | |
parent | cc0c5e1dfcb393dba4a25407ae159c94c025ea2c (diff) | |
download | xen-9125594e4e27944df656d99f5ba28e1923b6de18.tar.gz xen-9125594e4e27944df656d99f5ba28e1923b6de18.tar.bz2 xen-9125594e4e27944df656d99f5ba28e1923b6de18.zip |
python: get rid of hardcoded search pathes in python code.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Diffstat (limited to 'tools/python/Makefile')
-rw-r--r-- | tools/python/Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/python/Makefile b/tools/python/Makefile index 16ab59fd51..1eee50c4cf 100644 --- a/tools/python/Makefile +++ b/tools/python/Makefile @@ -13,9 +13,18 @@ POTFILE := $(PODIR)/xen-xm.pot I18NSRCFILES = $(shell find xen/xm/ -name '*.py') CATALOGS = $(patsubst %,xen/xm/messages/%.mo,$(LINGUAS)) NLSDIR = $(SHAREDIR)/locale +xenpath = "xen/util/path.py" + +.PHONY: build buildpy genpath +genpath: + rm -f ${xenpath} + echo "SBINDIR=\"$(SBINDIR)\"" >> ${xenpath} + echo "BINDIR=\"$(BINDIR)\"" >> ${xenpath} + echo "LIBEXEC=\"$(LIBEXEC)\"" >> ${xenpath} + echo "LIBDIR=\"$(LIBDIR)\"" >> ${xenpath} + echo "PRIVATE_BINDIR=\"$(PRIVATE_BINDIR)\"" >> ${xenpath} -.PHONY: build buildpy -buildpy: +buildpy: genpath CC="$(CC)" CFLAGS="$(CFLAGS)" $(PYTHON) setup.py build build: buildpy refresh-pot refresh-po $(CATALOGS) |