diff options
author | Sadie Powell <sadie@witchery.services> | 2020-05-16 14:25:24 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-05-16 14:25:24 +0100 |
commit | 87bb27a7a794d413bd75ea17d4e1f83e207c8bdc (patch) | |
tree | 25fbe66a0db74f36f561d99c52e86127ce52b218 /make/template | |
parent | 5a95d907d45c972c883fc0e763db1b960ecff55a (diff) |
Implement support for portable installations.
Diffstat (limited to 'make/template')
-rw-r--r-- | make/template/main.mk | 1 |
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@" |