I am making a package's compilation tool-chain portable , and one
of the dependencies requires numactl.
We are trying to get all of the dependencies to install into a directory
supplied at compile-time, but the Makefile for numactl does not accept a
PREFIX argument.

Signed-off-by: Frank Trampe <frank.trampe@gmail.com>
---
 Makefile |    4 ++++
 1 file changed, 4 insertions(+)

Index: numactl-dev/Makefile
===================================================================
--- numactl-dev.orig/Makefile
+++ numactl-dev/Makefile
@@ -37,7 +37,11 @@ SOURCES := bitops.c libnuma.c distance.c
 	numamon.c shm.c stream_lib.c stream_main.c syscall.c util.c mt.c \
 	clearcache.c test/*.c affinity.c sysfs.c rtnetlink.c
 
+ifeq ($(strip $(PREFIX)),)
 prefix := /usr
+else
+prefix := $(PREFIX)
+endif
 libdir := ${prefix}/$(shell ./getlibdir)
 docdir := ${prefix}/share/doc
 
