mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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
14 lines
300 B
Makefile
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 *~
|