summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>2019-11-14 04:18:08 +0100
committerMarco d'Itri <md@linux.it>2019-11-14 04:18:08 +0100
commit7c9e99025323e3994532b7414d26c821b82c8192 (patch)
treec2952738b3aff3f5fd08f011936e78cf74171799
parent2d71289a04e3061ceacaa2c83b69dfe73f21c7eb (diff)
downloadwhois-7c9e99025323e3994532b7414d26c821b82c8192.tar.gz
Support DESTDIR in the Makefiles
-rw-r--r--Makefile4
-rw-r--r--po/Makefile4
2 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0cd8cfa..da93d4c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,9 @@
prefix = /usr
+ifdef DESTDIR
+BASEDIR := $(DESTDIR)
+endif
+
CFLAGS ?= -g -O2
PKG_CONFIG ?= pkg-config
diff --git a/po/Makefile b/po/Makefile
index d695b49..6df1463 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -1,5 +1,9 @@
prefix = /usr
+ifdef DESTDIR
+BASEDIR := $(DESTDIR)
+endif
+
INSTALL= install
INSTALLNLSDIR=$(BASEDIR)$(prefix)/share/locale