We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76e89e2 commit 7465ce1Copy full SHA for 7465ce1
make/defaults-module.mk
@@ -1,11 +1,13 @@
1
# A bit of sed fun to ensure MAKE_DIR does not end with a '/'
2
# This is not a problem, but it makes the output nicer
3
-MAKE_DIR := $(shell echo $(dir $(lastword $(MAKEFILE_LIST))) | sed "s|/$$||")
+MAKE_DIR := $(shell echo $(dir $(lastword $(MAKEFILE_LIST))) | perl -pe "s|/$$||")
4
5
ifneq ($(.SHELLSTATUS),0)
6
$(error extracting `make` directory based on defaults-module.mk location failed)
7
endif
8
9
+$(info found MAKE_DIR = $(MAKE_DIR))
10
+
11
BUILD_DIR ?= build
12
COMPILER ?= gfortran
13
VERSION ?= $(file <$(MAKE_DIR)../data/version_number)
0 commit comments