diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-24 14:43:31 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-24 14:44:04 +0000 |
| commit | 9168fc9f78c1276c986c7effd63ba4f258417fd9 (patch) | |
| tree | 8f5237310be320864f76cc47ed2ffd3e83b61c08 | |
| parent | 1e74586ee99e4bd89626d2eb4d23883cd91f0f81 (diff) | |
| download | monzero-core-9168fc9f78c1276c986c7effd63ba4f258417fd9.tar.gz monzero-core-9168fc9f78c1276c986c7effd63ba4f258417fd9.tar.xz monzero-core-9168fc9f78c1276c986c7effd63ba4f258417fd9.zip | |
Makefile: fix building without a git tree
| -rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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)" |
