1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-22 12:14:00 +01:00

Makefile: refactor USE_SINGLE_BUILDDIR=OFF builddir path

This commit is contained in:
xiphon 2020-11-15 02:44:16 +00:00
parent 6fce5c7a84
commit b4c0cb65de

View File

@ -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'`) builddir := build
topdir := ../..
ifeq ($(USE_SINGLE_BUILDDIR), OFF) ifeq ($(USE_SINGLE_BUILDDIR), OFF)
builddir := build/"$(subbuilddir)" os := $(shell echo `uname | sed -e 's|[:/\\ \(\)]|_|g'`)
topdir := ../../../.. builddir := $(builddir)/$(os)
topdir := $(topdir)/..
branch:=$(shell git branch | grep '\* ' | cut -f2- -d' '| sed -e 's|[:/\\ \(\)]|_|g')
builddir := $(builddir)/$(branch)
topdir := $(topdir)/..
deldirs := $(builddir) deldirs := $(builddir)
else else
builddir := build
topdir := ../..
deldirs := $(builddir)/debug $(builddir)/release $(builddir)/fuzz deldirs := $(builddir)/debug $(builddir)/release $(builddir)/fuzz
endif endif