mirror of
https://github.com/isar/libmdbx.git
synced 2025-04-14 12:27:45 +08:00
mdbx-build: add stub Makefile for non-GNU Make.
This commit is contained in:
parent
fc48751f8f
commit
6da4c1f06b
@ -110,7 +110,7 @@ define uname2titer
|
|||||||
esac
|
esac
|
||||||
endef
|
endef
|
||||||
|
|
||||||
DIST_EXTRA := LICENSE README.md CMakeLists.txt GNUmakefile $(addprefix man1/, $(MANPAGES))
|
DIST_EXTRA := LICENSE README.md CMakeLists.txt GNUmakefile Makefile $(addprefix man1/, $(MANPAGES))
|
||||||
DIST_SRC := mdbx.h mdbx.c $(addsuffix .c, $(TOOLS))
|
DIST_SRC := mdbx.h mdbx.c $(addsuffix .c, $(TOOLS))
|
||||||
|
|
||||||
TEST_DB ?= $(shell [ -d /dev/shm ] && echo /dev/shm || echo /tmp)/mdbx-test.db
|
TEST_DB ?= $(shell [ -d /dev/shm ] && echo /dev/shm || echo /tmp)/mdbx-test.db
|
||||||
@ -215,6 +215,9 @@ libmdbx-sources-$(MDBX_VERSION_SUFFIX).tar.gz: $(addprefix dist/, $(DIST_SRC) $(
|
|||||||
dist/mdbx.h: mdbx.h src/elements/version.c $(lastword $(MAKEFILE_LIST))
|
dist/mdbx.h: mdbx.h src/elements/version.c $(lastword $(MAKEFILE_LIST))
|
||||||
mkdir -p dist && cp $< $@
|
mkdir -p dist && cp $< $@
|
||||||
|
|
||||||
|
dist/Makefile: Makefile
|
||||||
|
mkdir -p dist && cp $< $@
|
||||||
|
|
||||||
dist/GNUmakefile: GNUmakefile
|
dist/GNUmakefile: GNUmakefile
|
||||||
mkdir -p dist && sed -e '/^#> dist-cutoff-begin/,/^#< dist-cutoff-end/d' $< > $@
|
mkdir -p dist && sed -e '/^#> dist-cutoff-begin/,/^#< dist-cutoff-end/d' $< > $@
|
||||||
|
|
||||||
|
3
Makefile
Normal file
3
Makefile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
all check test dist: Makefile
|
||||||
|
@CC=$(CC) CXX=$(CXX) `which gmake || which gnumake || echo 'echo "GNU Make is required"'` $(MAKEFLAGS) -f GNUmakefile $@
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user