Support DESTDIR in the Makefiles

This commit is contained in:
Marco d'Itri 2019-11-14 04:18:08 +01:00
parent 2d71289a04
commit 7c9e990253
2 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,9 @@
prefix = /usr
ifdef DESTDIR
BASEDIR := $(DESTDIR)
endif
CFLAGS ?= -g -O2
PKG_CONFIG ?= pkg-config

View File

@ -1,5 +1,9 @@
prefix = /usr
ifdef DESTDIR
BASEDIR := $(DESTDIR)
endif
INSTALL= install
INSTALLNLSDIR=$(BASEDIR)$(prefix)/share/locale