mdbx: backport - ITS#8169 Allow passing mandir to make install.

The motivation for this change is my distribution moving to a multiarch
layout. While the architecture specific stuff (binaries, libraries,
etc.) is installed under /usr/${host}/{bin,lib,...} architecture-independent
data should still be installed to /usr/share/.

Change-Id: I9bc1e4ba975e8ef7fe945ca3b30f044ac40eedf2
This commit is contained in:
Heiko Becker 2015-06-11 21:09:59 +02:00 committed by Leo Yuriev
parent 35452812b5
commit 1739a2f4c1
2 changed files with 3 additions and 1 deletions

View File

@ -35,6 +35,7 @@ LMDB 0.9.17 Release Engineering
Use ANSI apis on Windows (ITS#8069 - nothing for MDBX) Use ANSI apis on Windows (ITS#8069 - nothing for MDBX)
Use O_SYNC if O_DSYNC,MDB_DSYNC are not defined (ITS#7209 - nothing for MDBX) Use O_SYNC if O_DSYNC,MDB_DSYNC are not defined (ITS#7209 - nothing for MDBX)
Allow passing AR to make (ITS#8168 - already done for MDBX) Allow passing AR to make (ITS#8168 - already done for MDBX)
Allow passing mandir to make install (ITS#8169)
LMDB 0.9.16 Release (2015/08/14) LMDB 0.9.16 Release (2015/08/14)
Fix cursor EOF bug (ITS#8190) Fix cursor EOF bug (ITS#8190)

View File

@ -18,6 +18,7 @@ XCFLAGS ?=
CFLAGS ?= -O2 -g -Wall -Werror -Wno-unused-parameter CFLAGS ?= -O2 -g -Wall -Werror -Wno-unused-parameter
CFLAGS += -pthread $(XCFLAGS) CFLAGS += -pthread $(XCFLAGS)
prefix ?= /usr/local prefix ?= /usr/local
mandir ?= $(prefix)/man
######################################################################## ########################################################################
@ -46,7 +47,7 @@ install: $(ILIBS) $(IPROGS) $(IHDRS)
for f in $(IPROGS); do cp $$f $(DESTDIR)$(prefix)/bin; done for f in $(IPROGS); do cp $$f $(DESTDIR)$(prefix)/bin; done
for f in $(ILIBS); do cp $$f $(DESTDIR)$(prefix)/lib; done for f in $(ILIBS); do cp $$f $(DESTDIR)$(prefix)/lib; done
for f in $(IHDRS); do cp $$f $(DESTDIR)$(prefix)/include; done for f in $(IHDRS); do cp $$f $(DESTDIR)$(prefix)/include; done
for f in $(IDOCS); do cp $$f $(DESTDIR)$(prefix)/man/man1; done for f in $(IDOCS); do cp $$f $(DESTDIR)$(mandir)/man1; done
clean: clean:
rm -rf $(PROGS) @* *.[ao] *.[ls]o *~ testdb/* *.gcov rm -rf $(PROGS) @* *.[ao] *.[ls]o *~ testdb/* *.gcov