From 7ab8f62d43ffbff722b65a994751435252a5fbdf Mon Sep 17 00:00:00 2001 From: Wainer dos Santos Moschetta Date: Mon, 7 Dec 2020 20:37:32 +0000 Subject: [PATCH] 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 --- src/runtime/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/Makefile b/src/runtime/Makefile index 690755f2ae..0c03b7065f 100644 --- a/src/runtime/Makefile +++ b/src/runtime/Makefile @@ -68,7 +68,7 @@ NETMON_TARGET = $(PROJECT_TYPE)-netmon NETMON_TARGET_OUTPUT = $(CURDIR)/$(NETMON_TARGET) BINLIBEXECLIST += $(NETMON_TARGET) -DESTDIR := / +DESTDIR ?= / ifeq ($(PREFIX),) PREFIX := /usr