From 44fbe564bb33ef6982770d68138b7ace61c2cfa4 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Wed, 10 Mar 2021 18:44:35 +0100 Subject: [PATCH] make/Makefile: use git to get the project's root directory Change-Id: I87a425515692e62df7b593a3c2a5b88a765d217d --- make/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/make/Makefile b/make/Makefile index 5280befd..f149291f 100644 --- a/make/Makefile +++ b/make/Makefile @@ -41,7 +41,8 @@ OSMOCOM_REPO_MIRROR?=http://download.opensuse.org OSMOCOM_REPO_VERSION?=latest # Use "nightly" to use the nightly repo -RELEASE_SUPPORT := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))/.make-release-support +ROOT_DIR=$(shell git rev-parse --show-toplevel) +RELEASE_SUPPORT := $(ROOT_DIR)/make/.make-release-support IMAGE?=$(REGISTRY_HOST)/$(USER)/$(NAME) VERSION?=$(shell . $(RELEASE_SUPPORT) ; getRelease)