runtime: Allow to overwrite DESTDIR

On runtime/Makefile the value of DESTDIR is set to "/", unless one
pass that variable as an argument to `make`. This change will
allow its overwrite if DESTDIR is exported in the environment as
well.

Fixes #1182

Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
This commit is contained in:
Wainer dos Santos Moschetta 2020-12-07 20:37:32 +00:00
parent e167bf30e3
commit 10e9bfc6f7

View File

@ -68,7 +68,7 @@ NETMON_TARGET = $(PROJECT_TYPE)-netmon
NETMON_TARGET_OUTPUT = $(CURDIR)/$(NETMON_TARGET) NETMON_TARGET_OUTPUT = $(CURDIR)/$(NETMON_TARGET)
BINLIBEXECLIST += $(NETMON_TARGET) BINLIBEXECLIST += $(NETMON_TARGET)
DESTDIR := / DESTDIR ?= /
ifeq ($(PREFIX),) ifeq ($(PREFIX),)
PREFIX := /usr PREFIX := /usr