forked from LLNL/merlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.mk
27 lines (25 loc) · 815 Bytes
/
config.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
PYTHON?=python3
PYV=$(shell $(PYTHON) -c "import sys;t='{v[0]}_{v[1]}'.format(v=list(sys.version_info[:2]));sys.stdout.write(t)")
PYVD=$(shell $(PYTHON) -c "import sys;t='{v[0]}.{v[1]}'.format(v=list(sys.version_info[:2]));sys.stdout.write(t)")
VENV?=venv_merlin_py_$(PYV)
PIP?=$(VENV)/bin/pip
MRLN=merlin
TEST=tests
UNIT=$(TEST)/unit
DOCS=docs
WKFW=merlin/examples/workflows/
# check setup.cfg exists
ifeq (,$(wildcard setup.cfg))
MAX_COMPLEXITY?=15
MAX_LINE_LENGTH=127
else
MAX_COMPLEXITY?=$(shell grep 'max-complexity' setup.cfg | cut -d ' ' -f3)
MAX_LINE_LENGTH=$(shell grep 'max-line-length' setup.cfg | cut -d ' ' -f3)
endif
VER?=1.0.0
VSTRING=[0-9]\+\.[0-9]\+\.[0-9]\+
YEAR=20[0-9][0-9]
NEW_YEAR?=2023
CHANGELOG_VSTRING="## \[$(VSTRING)\]"
INIT_VSTRING="__version__ = \"$(VSTRING)\""
PENV=merlin$(PYV)