aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvador Fandiño <sfandino@yahoo.com>2017-05-31 14:30:32 +0200
committerSalvador Fandiño <sfandino@yahoo.com>2017-06-05 09:33:55 +0200
commitf61956c1698560be5c492a4e5920b312e300d25a (patch)
tree30553ddd09444ecb778d28fe745f7b8e8a86ddc8
parent04fbb27267485c287752972e1a9ccf0c7f07aae9 (diff)
downloadnx-libs-f61956c1698560be5c492a4e5920b312e300d25a.tar.gz
nx-libs-f61956c1698560be5c492a4e5920b312e300d25a.tar.bz2
nx-libs-f61956c1698560be5c492a4e5920b312e300d25a.zip
Propagate DESTDIR and PREFIX from Makefile
When descending subdirectories and calling configure pass `--prefix=${DESTDIR}${PREFIX}`, so that installing in a custom directory works.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dedbe21d8..7103efb34 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ SHLIBDIR ?= $(LIBDIR)
NXLIBDIR ?= $(SHLIBDIR)/nx
USRLIBDIR ?= $(NXLIBDIR)/X11
INCLUDEDIR ?= $(PREFIX)/include
-CONFIGURE ?= ./configure
+CONFIGURE ?= ./configure --prefix=$(DESTDIR)$(PREFIX)
# use Xfont2 if available in the build env
FONT_DEFINES ?= $(shell pkg-config --modversion xfont2 1>/dev/null 2>/dev/null && echo "-DHAS_XFONT2")