aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPramode <mail@pramode.in>2019-01-20 19:09:07 +0530
committerPramode <mail@pramode.in>2019-01-20 19:09:07 +0530
commit81649d9979d5069299500bc6d74fc9587cccee16 (patch)
tree02f7215f991ced77232a90133b704e5f24b29942
parent7efe1f06eedbdfbdc316d330f746c47391be8f78 (diff)
Propagate prefix settings to Makefiles
A "make install" was failing because the --prefix flag setting was not being propagated to the Makefiles.
-rw-r--r--example/Makefile.in2
-rw-r--r--src/lib/Makefile.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/example/Makefile.in b/example/Makefile.in
index 074718028..8960ed0a2 100644
--- a/example/Makefile.in
+++ b/example/Makefile.in
@@ -3,7 +3,7 @@ CFLAGS=-g -I../src/include @CFLAGS@
LIBNDPI=../src/lib/libndpi.a
LDFLAGS=$(LIBNDPI) @PCAP_LIB@ -lpthread @LDFLAGS@
OBJS=ndpiReader.o ndpi_util.o
-PREFIX?=/usr/local
+PREFIX?=@prefix@
all: ndpiReader @DPDK_TARGET@
diff --git a/src/lib/Makefile.in b/src/lib/Makefile.in
index 0ffeb9db5..8b0853dd4 100644
--- a/src/lib/Makefile.in
+++ b/src/lib/Makefile.in
@@ -10,7 +10,7 @@
#
# Installation directories
#
-prefix = /usr/local
+prefix = @prefix@
libdir = ${prefix}/lib
includedir = ${prefix}/include/ndpi
CC = @CC@