-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.mk
More file actions
63 lines (51 loc) · 1.22 KB
/
config.mk
File metadata and controls
63 lines (51 loc) · 1.22 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# To run in full mode for the build turn that to full
# It can be done at run time by doing
# make MODE=full <target>
export MODE ?= min
export DATA_PATH ?= ${PWD}/data
export SRC_PATH ?= ${PWD}/src
export BIN_PATH ?= ${PWD}/bin
export TESTS_PATH ?= ${PWD}/tests
export GNFINDER_VERSION = v1.1.6
export GNVERIFIER_VERSION = v1.3.2
export OPSIN_VERSION = 2.9.0
export OTT_VERSION = 3.7.3
export GBIF_BACKBONE = 2023-08-28
export NPCLASSIFIER_VERSION = 1.5
export INDEX_VERSION = 1
export OSF_VALIDATION = vg2we
export ZENODO_CUSTOM_DIC = 6487114
export UNAME := $(shell uname)
# get OS info
UNAME_S := $(shell uname -s)
UNAME_M := $(shell uname -m)
# normalize OS
ifeq ($(UNAME_S),Windows_NT)
OS := win
else ifeq ($(UNAME_S),Linux)
OS := linux
else ifeq ($(UNAME_S),Darwin)
OS := mac
else
OS := unsupported
endif
# normalize architecture
ifeq ($(UNAME_M),x86_64)
ARCH := amd64
else ifeq ($(UNAME_M),aarch64)
ARCH := arm64
else ifeq ($(UNAME_M),arm64)
ARCH := arm64
else
ARCH := unknown
endif
PLATFORM := $(OS)-$(ARCH)
NPROCS := 1
ifeq ($(UNAME_S),Linux)
NPROCS := $(shell grep -c ^processor /proc/cpuinfo)
endif
ifeq ($(UNAME_S),Darwin)
NPROCS := $(shell sysctl -n hw.ncpu)
endif
show-platform:
@echo $(PLATFORM)