From 7465ce150a9e212506e8d551d830a1d487dd6125 Mon Sep 17 00:00:00 2001 From: Vincent Vanlaer Date: Mon, 21 Oct 2024 23:47:10 +0200 Subject: [PATCH] fixup! build: add new build system --- make/defaults-module.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/make/defaults-module.mk b/make/defaults-module.mk index a4a743fbb..e6a29c44d 100644 --- a/make/defaults-module.mk +++ b/make/defaults-module.mk @@ -1,11 +1,13 @@ # A bit of sed fun to ensure MAKE_DIR does not end with a '/' # This is not a problem, but it makes the output nicer -MAKE_DIR := $(shell echo $(dir $(lastword $(MAKEFILE_LIST))) | sed "s|/$$||") +MAKE_DIR := $(shell echo $(dir $(lastword $(MAKEFILE_LIST))) | perl -pe "s|/$$||") ifneq ($(.SHELLSTATUS),0) $(error extracting `make` directory based on defaults-module.mk location failed) endif +$(info found MAKE_DIR = $(MAKE_DIR)) + BUILD_DIR ?= build COMPILER ?= gfortran VERSION ?= $(file <$(MAKE_DIR)../data/version_number)