mdbx-build: fix wingetopt.c amalgamation.

Change-Id: I1527dace166e708847ead7cea1087600aa055210
This commit is contained in:
Leonid Yuriev 2019-09-19 13:35:21 +03:00
parent d15a6b935c
commit 9b9baddd0b

View File

@ -223,8 +223,7 @@ dist/$(1).c: src/tools/$(1).c src/tools/wingetopt.h src/tools/wingetopt.c \
dist/@tmp-shared_internals.inc $(lastword $(MAKEFILE_LIST))
mkdir -p dist && sed \
-e '/#include "..\/elements\/internals.h"/r dist/@tmp-shared_internals.inc' \
-e '/#include "wingetopt.h"/r r/src/tools/wingetopt.c' \
-e '/#include "wingetopt.h"/r r/src/tools/wingetopt.h' \
-e '/#include "wingetopt.h"/r src/tools/wingetopt.c' \
src/tools/$(1).c \
| grep -v -e '#include "' -e '#pragma once' -e '#define MDBX_ALLOY' \
| sed 's|@INCLUDE|#include|' > $$@