diff options
author | Marco d'Itri <md@linux.it> | 2019-11-14 04:18:08 +0100 |
---|---|---|
committer | Marco d'Itri <md@linux.it> | 2019-11-14 04:18:08 +0100 |
commit | 7c9e99025323e3994532b7414d26c821b82c8192 (patch) | |
tree | c2952738b3aff3f5fd08f011936e78cf74171799 | |
parent | 2d71289a04e3061ceacaa2c83b69dfe73f21c7eb (diff) | |
download | whois-7c9e99025323e3994532b7414d26c821b82c8192.tar.gz |
Support DESTDIR in the Makefiles
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | po/Makefile | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -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 |