Support Monero out-of-source build

This commit is contained in:
TrasherDK 2019-10-27 08:07:29 +01:00
parent 21bf3019eb
commit 5e4392f1be

View file

@ -36,12 +36,14 @@ ifeq ($(MAKECMDGOALS),release)
TYPE = release
endif
ifeq ($(origin MONERO_BUILD_ROOT), undefined)
MONERO_BUILD_ROOT = \
${MONERO_ROOT}/build/$(shell echo `uname | \
sed -e 's|[:/\\ \(\)]|_|g'`/` \
git -C ${MONERO_ROOT} branch | \
grep '\* ' | cut -f2- -d' '| \
sed -e 's|[:/\\ \(\)]|_|g'`)/release
endif
MONERO_INC = \
${MONERO_ROOT}/src \