From 6da4c1f06b19e2eb776b23a8c161aa700e1f3687 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Fri, 8 Nov 2019 09:25:43 +0300 Subject: [PATCH] mdbx-build: add stub Makefile for non-GNU Make. --- GNUmakefile | 5 ++++- Makefile | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/GNUmakefile b/GNUmakefile index d699fbd6..d470d655 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -110,7 +110,7 @@ define uname2titer esac 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)) 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)) mkdir -p dist && cp $< $@ +dist/Makefile: Makefile + mkdir -p dist && cp $< $@ + dist/GNUmakefile: GNUmakefile mkdir -p dist && sed -e '/^#> dist-cutoff-begin/,/^#< dist-cutoff-end/d' $< > $@ diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..070257a8 --- /dev/null +++ b/Makefile @@ -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 $@ +