summaryrefslogtreecommitdiff
path: root/make/template
diff options
context:
space:
mode:
Diffstat (limited to 'make/template')
-rw-r--r--make/template/main.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/make/template/main.mk b/make/template/main.mk
index a57595c9d..6bd1d390d 100644
--- a/make/template/main.mk
+++ b/make/template/main.mk
@@ -49,6 +49,7 @@ LDLIBS = -lstdc++
CORELDFLAGS = -rdynamic -L.
PICLDFLAGS = -fPIC -shared -rdynamic
+DESTDIR := $(if $(DESTDIR),$(DESTDIR),"@DESTDIR|@")
BASE = "$(DESTDIR)@BASE_DIR@"
BINPATH = "$(DESTDIR)@BINARY_DIR@"
CONPATH = "$(DESTDIR)@CONFIG_DIR@"