[make] set PREFIX from DESTDIR if it present

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2023-01-17 01:28:50 +03:00
parent 36cb707e47
commit 6ca6591c43
No known key found for this signature in database
GPG Key ID: 66F6C87B98EBCFE2

View File

@ -47,6 +47,10 @@ else
LD_DEBUG = -s
endif
ifneq (, $(DESTDIR))
PREFIX = $(DESTDIR)
endif
ifneq (, $(findstring darwin, $(SYS)))
DAEMON_SRC += $(DAEMON_SRC_DIR)/UnixDaemon.cpp
ifeq ($(HOMEBREW),1)