mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Python packages can be installed to the Python installation's 'native' location, instead of generic /usr/lib/python, by specifying XEN_PYTHON_NATIVE_INSTALL in the environment or on the make command line. Signed-off-by: Keir Fraser <keir@xensource.com>
19 lines
362 B
Makefile
19 lines
362 B
Makefile
|
|
XEN_ROOT = ../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
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
|
|
|
|
clean:
|
|
rm -rf build *.pyc *.pyo *.o *.a *~
|