From 81649d9979d5069299500bc6d74fc9587cccee16 Mon Sep 17 00:00:00 2001 From: Pramode Date: Sun, 20 Jan 2019 19:09:07 +0530 Subject: Propagate prefix settings to Makefiles A "make install" was failing because the --prefix flag setting was not being propagated to the Makefiles. --- example/Makefile.in | 2 +- src/lib/Makefile.in | 2 +- 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@ -- cgit v1.2.3