mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Makefile: fix building without a git tree
This commit is contained in:
parent
1e74586ee9
commit
9168fc9f78
1 changed files with 5 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -28,6 +28,11 @@
|
||||||
|
|
||||||
ANDROID_STANDALONE_TOOLCHAIN_PATH ?= /usr/local/toolchain
|
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'`)
|
subbuilddir:=$(shell echo `uname | sed -e 's|[:/\\ \(\)]|_|g'`/`git branch | grep '\* ' | cut -f2- -d' '| sed -e 's|[:/\\ \(\)]|_|g'`)
|
||||||
ifeq ($(USE_SINGLE_BUILDDIR),)
|
ifeq ($(USE_SINGLE_BUILDDIR),)
|
||||||
builddir := build/"$(subbuilddir)"
|
builddir := build/"$(subbuilddir)"
|
||||||
|
|
Loading…
Reference in a new issue