Skip to content

Commit 7465ce1

Browse files
fixup! build: add new build system
1 parent 76e89e2 commit 7465ce1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

make/defaults-module.mk

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# A bit of sed fun to ensure MAKE_DIR does not end with a '/'
22
# This is not a problem, but it makes the output nicer
3-
MAKE_DIR := $(shell echo $(dir $(lastword $(MAKEFILE_LIST))) | sed "s|/$$||")
3+
MAKE_DIR := $(shell echo $(dir $(lastword $(MAKEFILE_LIST))) | perl -pe "s|/$$||")
44

55
ifneq ($(.SHELLSTATUS),0)
66
$(error extracting `make` directory based on defaults-module.mk location failed)
77
endif
88

9+
$(info found MAKE_DIR = $(MAKE_DIR))
10+
911
BUILD_DIR ?= build
1012
COMPILER ?= gfortran
1113
VERSION ?= $(file <$(MAKE_DIR)../data/version_number)

0 commit comments

Comments
 (0)