From 6771b7526caffe0a2618aede9d0103d872152517 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Thu, 17 Jun 2021 14:20:32 +0300 Subject: [PATCH] mdbx-make: use only portable option of `install` utility. Fixes https://github.com/erthink/libmdbx/issues/208. --- GNUmakefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 15d1d52f..983d6553 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -596,11 +596,16 @@ cross-qemu: install: $(LIBRARIES) $(TOOLS) $(HEADERS) @echo ' INSTALLING...' - $(INSTALL) -D -p $(EXE_INSTALL_FLAGS) -t $(DESTDIR)$(prefix)/bin$(suffix) $(TOOLS) && \ - $(INSTALL) -D -p $(EXE_INSTALL_FLAGS) -t $(DESTDIR)$(prefix)/lib$(suffix) $(filter-out libmdbx.a,$(LIBRARIES)) && \ - $(INSTALL) -D -p -t $(DESTDIR)$(prefix)/lib$(suffix) libmdbx.a && \ - $(INSTALL) -D -p -m 444 -t $(DESTDIR)$(prefix)/include $(HEADERS) && \ - $(INSTALL) -D -p -m 444 -t $(DESTDIR)$(mandir)/man1 $(addprefix $(MAN_SRCDIR), $(MANPAGES)) + $(QUIET)mkdir -p $(DESTDIR)$(prefix)/bin$(suffix) && \ + $(INSTALL) -p $(EXE_INSTALL_FLAGS) $(TOOLS) $(DESTDIR)$(prefix)/bin$(suffix)/ && \ + mkdir -p $(DESTDIR)$(prefix)/lib$(suffix)/ && \ + $(INSTALL) -p $(EXE_INSTALL_FLAGS) $(filter-out libmdbx.a,$(LIBRARIES)) $(DESTDIR)$(prefix)/lib$(suffix)/ && \ + mkdir -p $(DESTDIR)$(prefix)/lib$(suffix)/ && \ + $(INSTALL) -p libmdbx.a $(DESTDIR)$(prefix)/lib$(suffix)/ && \ + mkdir -p $(DESTDIR)$(prefix)/include/ && \ + $(INSTALL) -p -m 444 $(HEADERS) $(DESTDIR)$(prefix)/include/ && \ + mkdir -p $(DESTDIR)$(mandir)/man1/ && \ + $(INSTALL) -p -m 444 $(addprefix $(MAN_SRCDIR), $(MANPAGES)) $(DESTDIR)$(mandir)/man1/ install-strip: EXE_INSTALL_FLAGS = -s install-strip: install