Makefile: fix building without a git tree

This commit is contained in:
moneromooo-monero 2018-10-24 14:43:31 +00:00 committed by wowario
parent d5c079ef1e
commit d48a44d161
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111
1 changed files with 5 additions and 0 deletions

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)"