python: get rid of hardcoded search pathes in python code.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
This commit is contained in:
Keir Fraser committed 2009-05-19 02:16:37 +01:00
1 parent cc0c5e1dfc
commit 9125594e4e
3 files changed
+22 -31

No files matched your search

+11 -2
View File
@@ -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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.