Files
xen/tools/python/Makefile
T
iap10@labyrinth.cl.cam.ac.uk d2f5d53621 bitkeeper revision 1.1159.223.26 (41f2cdb6LNpheOtPoAKEUn-czlZFig)
Description: use DESTDIR correctly
Standard makefiles always attempt to install to the root(/).  Setting
DESTDIR is the normal way to install to an alternative location.
Setting prefix has the possibility of breaking programs, as the prefix
may have been embedded inside a compiled binary.

From: Adam Heath <doogie@brainfood.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-01-22 22:03:34 +00:00

14 lines
300 B
Makefile

all:
python setup.py build
install: all
if [ "$(DESTDIR)" = "" ]; then \
python setup.py install; \
else \
python setup.py install --root="$(DESTDIR)"; \
fi
clean:
rm -rf build *.pyc *.pyo *.o *.a *~