mdbx: support make dist for debug-includes.

This commit is contained in:
Leonid Yuriev 2022-01-04 18:41:53 +03:00
parent a6340c6b03
commit 38e9aa79e7

View File

@ -535,7 +535,9 @@ dist/@tmp-shared_internals.inc: src/version.c $(ALLOY_DEPS) $(lastword $(MAKEFIL
dist/mdbx.c: dist/@tmp-shared_internals.inc $(lastword $(MAKEFILE_LIST)) dist/mdbx.c: dist/@tmp-shared_internals.inc $(lastword $(MAKEFILE_LIST))
@echo ' MAKE $@' @echo ' MAKE $@'
$(QUIET)mkdir -p dist && (cat dist/@tmp-shared_internals.inc \ $(QUIET)mkdir -p dist && (cat dist/@tmp-shared_internals.inc \
&& cat src/core.c src/osal.c src/version.c src/lck-windows.c src/lck-posix.c \ && cat src/core.c src/osal.c src/version.c src/lck-windows.c src/lck-posix.c | sed \
-e '/#include "debug_begin.h"/r src/debug_begin.h' \
-e '/#include "debug_end.h"/r src/debug_end.h' \
) | grep -v -e '#include "' -e '#pragma once' | sed 's|@INCLUDE|#include|' >$@ ) | grep -v -e '#include "' -e '#pragma once' | sed 's|@INCLUDE|#include|' >$@
dist/mdbx.c++: dist/@tmp-shared_internals.inc src/mdbx.c++ $(lastword $(MAKEFILE_LIST)) dist/mdbx.c++: dist/@tmp-shared_internals.inc src/mdbx.c++ $(lastword $(MAKEFILE_LIST))