X-Git-Url: http://git.onelab.eu/?p=vsys-scripts.git;a=blobdiff_plain;f=slice-context%2FMakefile;h=d7b47337d798c7aae3a32f667976bd9780974480;hp=0dacbf0b6c04a865d2f86f8402cc3eaf6e8772e3;hb=2f8e92cbc1c973cfb2c794473f63ce615a2c94f7;hpb=efd81a67747ce65941a7129706327edd3b2c072e diff --git a/slice-context/Makefile b/slice-context/Makefile index 0dacbf0..d7b4733 100644 --- a/slice-context/Makefile +++ b/slice-context/Makefile @@ -2,6 +2,8 @@ SRC = src TEST = test BUILDDIR = build DISTDIR = dist +# expected to be set from the specfile +DESTDIR ?= / SUBBUILDDIR = $(shell python -c 'import distutils.util, sys; print "lib.%s-%s" % (distutils.util.get_platform(), sys.version[0:3])') BUILDDIR := $(BUILDDIR)/$(SUBBUILDDIR) @@ -13,7 +15,7 @@ all: ./setup.py build install: all - ./setup.py install + ./setup.py install --root=$(DESTDIR) test: all retval=0; \