aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-03-10 18:44:35 +0100
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-03-10 18:46:29 +0100
commit44fbe564bb33ef6982770d68138b7ace61c2cfa4 (patch)
treeaa2a40a31678ac1b9b8e59ac61b87e12d881e3c4
parentd5d20c7a9a817541ff8812364009a36d7db288bd (diff)
make/Makefile: use git to get the project's root directory
-rw-r--r--make/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/make/Makefile b/make/Makefile
index 5280bef..f149291 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)