Merge pull request #4716

0406724c Makefile: fix building without a git tree (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-10-26 22:14:26 +02:00
commit ab6c17cc15
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -28,6 +28,11 @@
ANDROID_STANDALONE_TOOLCHAIN_PATH ?= /usr/local/toolchain
dotgit=$(shell ls -d .git/config)
ifneq ($(dotgit), .git/config)
USE_SINGLE_BUILDDIR=1
endif
subbuilddir:=$(shell echo `uname | sed -e 's|[:/\\ \(\)]|_|g'`/`git branch | grep '\* ' | cut -f2- -d' '| sed -e 's|[:/\\ \(\)]|_|g'`)
ifeq ($(USE_SINGLE_BUILDDIR),)
builddir := build/"$(subbuilddir)"