fix: don't assume git environment in Makefile

some environments do only use the code as is, and won't be able to detect the ROOT using git
This commit is contained in:
Ayoub Benaissa
2022-09-08 06:59:10 +01:00
committed by rudy-6-4
parent 320e3c1963
commit 2990df3059

View File

@@ -4,7 +4,7 @@ CARGO_PROFILE ?= release
PROFILE_SUBDIR ?= release
MAKEFILE_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
ROOT = $(shell git rev-parse --show-toplevel)
ROOT = $(realpath $(MAKEFILE_DIR)/..)
CXXBRIDGE_DIR = $(ROOT)/target/cxxbridge/concrete-optimizer-cpp/src
# In target intermediate files