From 7c9e99025323e3994532b7414d26c821b82c8192 Mon Sep 17 00:00:00 2001 From: Marco d'Itri Date: Thu, 14 Nov 2019 04:18:08 +0100 Subject: Support DESTDIR in the Makefiles --- Makefile | 4 ++++ po/Makefile | 4 ++++ 2 files changed, 8 insertions(+) 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 -- cgit v1.2.3