Skip to content

Add module for handling version information of stdlib #579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Nov 27, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use portable make commands
  • Loading branch information
awvwgk committed Nov 26, 2021
commit e51dbc24a6b382f09cfc11631fed45ce0fa446a4
7 changes: 4 additions & 3 deletions Makefile.manual
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ FC ?= gfortran
FFLAGS ?= -Wall -Wextra -Wimplicit-interface -fPIC -g -fcheck=all
FYPPFLAGS ?=

VERSION := $(subst ., ,$(file <VERSION))
FYPPFLAGS += \
-DPROJECT_VERSION_MAJOR=$(shell cut -d. -f1 VERSION) \
-DPROJECT_VERSION_MINOR=$(shell cut -d. -f2 VERSION) \
-DPROJECT_VERSION_PATCH=$(shell cut -d. -f3 VERSION)
-DPROJECT_VERSION_MAJOR=$(word 1,$(VERSION)) \
-DPROJECT_VERSION_MINOR=$(word 2,$(VERSION)) \
-DPROJECT_VERSION_PATCH=$(word 3,$(VERSION))

export FC
export FFLAGS
Expand Down