Skip to content

Commit

Permalink
fixup! build: add new build system
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentVanlaer committed Oct 21, 2024
1 parent 76e89e2 commit 7465ce1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion make/defaults-module.mk
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 7465ce1

Please sign in to comment.