Files
xen/tools/python/Makefile
T
emellor@ewan 0c6f366280 Added Zope's test.py, and a unit test to sxp. This test itself isn't very
exciting, but it's there to encourage the creation of more interesting ones.  A
test target has been added to the main Makefile, and the one in tools/python.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-06 15:12:31 +01:00

23 lines
500 B
Makefile

XEN_ROOT = ../..
include $(XEN_ROOT)/tools/Rules.mk
.PHONY: all build install clean
all: build
build:
CFLAGS="$(CFLAGS)" python setup.py build
ifndef XEN_PYTHON_NATIVE_INSTALL
install: all
CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr"
else
install: all
CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)"
endif
test:
export LD_LIBRARY_PATH=$$(readlink -f ../libxc):$$(readlink -f ../xenstore); python test.py -b -u
clean:
rm -rf build *.pyc *.pyo *.o *.a *~