make/Makefile: use git to get the project's root directory

Change-Id: I87a425515692e62df7b593a3c2a5b88a765d217d
This commit is contained in:
Vadim Yanitskiy 2021-03-10 18:44:35 +01:00
parent d5d20c7a9a
commit 44fbe564bb
1 changed files with 2 additions and 1 deletions

View File

@ -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)