Lines 1-42
Link Here
|
1 |
--- GNUmakefile.orig 2022-08-02 10:17:33 UTC |
|
|
2 |
+++ GNUmakefile |
3 |
@@ -9,7 +9,7 @@ |
4 |
# Basic internal definitios. For a customizable variables and options see below. |
5 |
# |
6 |
$(info // The GNU Make $(MAKE_VERSION)) |
7 |
-SHELL := $(shell env bash -c 'echo $$BASH') |
8 |
+SHELL := sh |
9 |
MAKE_VERx3 := $(shell printf "%3s%3s%3s" $(subst ., ,$(MAKE_VERSION))) |
10 |
make_lt_3_81 := $(shell expr "$(MAKE_VERx3)" "<" " 3 81") |
11 |
ifneq ($(make_lt_3_81),0) |
12 |
@@ -117,7 +117,7 @@ define uname2libs |
13 |
esac |
14 |
endef |
15 |
|
16 |
-SO_SUFFIX := $(shell $(uname2sosuffix)) |
17 |
+SO_SUFFIX := so.0.11.14 |
18 |
HEADERS := mdbx.h mdbx.h++ |
19 |
LIBRARIES := libmdbx.a libmdbx.$(SO_SUFFIX) |
20 |
TOOLS := mdbx_stat mdbx_copy mdbx_dump mdbx_load mdbx_chk mdbx_drop |
21 |
@@ -284,16 +284,11 @@ mdbx_%.static-lto: mdbx_%.c config.h mdbx.c mdbx.h |
22 |
|
23 |
install: $(LIBRARIES) $(TOOLS) $(HEADERS) |
24 |
@echo ' INSTALLING...' |
25 |
- $(QUIET)mkdir -p $(DESTDIR)$(prefix)/bin$(suffix) && \ |
26 |
- $(INSTALL) -p $(EXE_INSTALL_FLAGS) $(TOOLS) $(DESTDIR)$(prefix)/bin$(suffix)/ && \ |
27 |
- mkdir -p $(DESTDIR)$(prefix)/lib$(suffix)/ && \ |
28 |
- $(INSTALL) -p $(EXE_INSTALL_FLAGS) $(filter-out libmdbx.a,$(LIBRARIES)) $(DESTDIR)$(prefix)/lib$(suffix)/ && \ |
29 |
- mkdir -p $(DESTDIR)$(prefix)/lib$(suffix)/ && \ |
30 |
- $(INSTALL) -p libmdbx.a $(DESTDIR)$(prefix)/lib$(suffix)/ && \ |
31 |
- mkdir -p $(DESTDIR)$(prefix)/include/ && \ |
32 |
- $(INSTALL) -p -m 444 $(HEADERS) $(DESTDIR)$(prefix)/include/ && \ |
33 |
- mkdir -p $(DESTDIR)$(mandir)/man1/ && \ |
34 |
- $(INSTALL) -p -m 444 $(addprefix $(MAN_SRCDIR), $(MANPAGES)) $(DESTDIR)$(mandir)/man1/ |
35 |
+ install -p -s $(TOOLS) $(DESTDIR)$(prefix)/bin$(suffix) && \ |
36 |
+ install -p -s $(filter-out libmdbx.a,$(LIBRARIES)) $(DESTDIR)$(prefix)/lib$(suffix) && \ |
37 |
+ install -p libmdbx.a $(DESTDIR)$(prefix)/lib$(suffix) && \ |
38 |
+ install -p -m 444 $(HEADERS) $(DESTDIR)$(prefix)/include && \ |
39 |
+ install -p -m 444 $(addprefix $(MAN_SRCDIR), $(MANPAGES)) $(DESTDIR)$(mandir)/man1 |
40 |
|
41 |
install-strip: EXE_INSTALL_FLAGS = -s |
42 |
install-strip: install |