mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-22 19:49:34 +00:00
Makefile: refactor USE_SINGLE_BUILDDIR=OFF builddir path
This commit is contained in:
parent
6fce5c7a84
commit
b4c0cb65de
1 changed files with 12 additions and 7 deletions
17
Makefile
17
Makefile
|
@ -6,14 +6,19 @@ ifneq ($(dotgit), .git/config)
|
||||||
USE_SINGLE_BUILDDIR=1
|
USE_SINGLE_BUILDDIR=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
subbuilddir:=$(shell echo `uname | sed -e 's|[:/\\ \(\)]|_|g'`/`git branch | grep '\* ' | cut -f2- -d' '| sed -e 's|[:/\\ \(\)]|_|g'`)
|
|
||||||
ifeq ($(USE_SINGLE_BUILDDIR), OFF)
|
|
||||||
builddir := build/"$(subbuilddir)"
|
|
||||||
topdir := ../../../..
|
|
||||||
deldirs := $(builddir)
|
|
||||||
else
|
|
||||||
builddir := build
|
builddir := build
|
||||||
topdir := ../..
|
topdir := ../..
|
||||||
|
ifeq ($(USE_SINGLE_BUILDDIR), OFF)
|
||||||
|
os := $(shell echo `uname | sed -e 's|[:/\\ \(\)]|_|g'`)
|
||||||
|
builddir := $(builddir)/$(os)
|
||||||
|
topdir := $(topdir)/..
|
||||||
|
|
||||||
|
branch:=$(shell git branch | grep '\* ' | cut -f2- -d' '| sed -e 's|[:/\\ \(\)]|_|g')
|
||||||
|
builddir := $(builddir)/$(branch)
|
||||||
|
topdir := $(topdir)/..
|
||||||
|
|
||||||
|
deldirs := $(builddir)
|
||||||
|
else
|
||||||
deldirs := $(builddir)/debug $(builddir)/release $(builddir)/fuzz
|
deldirs := $(builddir)/debug $(builddir)/release $(builddir)/fuzz
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue