Merge pull request #18 from trasherdk/monero-out-of-source

Support Monero out-of-source build
This commit is contained in:
Jethro Grassie 2019-10-27 23:07:24 -04:00 committed by GitHub
commit cc0bfd2b56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,12 +36,14 @@ ifeq ($(MAKECMDGOALS),release)
TYPE = release
endif
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
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 \