58 lines
1.8 KiB
Makefile
58 lines
1.8 KiB
Makefile
FROSTFS_VERSION?=0.42.9
|
|
FROSTFS_CONTRACTS_VERSION=0.19.4
|
|
FROSTFS_LOCODE_VERSION=0.4.0
|
|
NEOGO_VERSION?=0.106.3
|
|
|
|
ALPHABET=az buky vedi glagoli dobro yest zhivete
|
|
|
|
ADM?=bin/frostfs-adm-v$(FROSTFS_VERSION)
|
|
ADM_RELEASE_URL=https://git.frostfs.info/TrueCloudLab/frostfs-node/releases/download/v$(FROSTFS_VERSION)/frostfs-adm
|
|
|
|
CLI?=bin/frostfs-cli-v$(FROSTFS_VERSION)
|
|
CLI_RELEASE_URL=https://git.frostfs.info/TrueCloudLab/frostfs-node/releases/download/v$(FROSTFS_VERSION)/frostfs-cli
|
|
|
|
IR?=bin/frostfs-ir-v$(FROSTFS_VERSION)
|
|
IR_RELEASE_URL=https://git.frostfs.info/TrueCloudLab/frostfs-node/releases/download/v$(FROSTFS_VERSION)/frostfs-ir
|
|
|
|
NODE?=bin/frostfs-node-v$(FROSTFS_VERSION)
|
|
NODE_RELEASE_URL=https://git.frostfs.info/TrueCloudLab/frostfs-node/releases/download/v$(FROSTFS_VERSION)/frostfs-node
|
|
|
|
NEOGO?=bin/neo-go-v$(NEOGO_VERSION)
|
|
NEOGO_RELEASE_URL=https://github.com/nspcc-dev/neo-go/releases/download/v$(NEOGO_VERSION)/neo-go-linux-amd64
|
|
|
|
LOCODE?=bin/locode.db
|
|
LOCODE_RELEASE_URL=https://git.frostfs.info/TrueCloudLab/frostfs-locode-db/releases/download/v$(FROSTFS_LOCODE_VERSION)/locode_db.gz
|
|
|
|
bin/frostfs-adm-v$(FROSTFS_VERSION):
|
|
mkdir -p $(dir $@)
|
|
wget -q "$(ADM_RELEASE_URL)" -O "$@"
|
|
chmod +x "$@"
|
|
|
|
bin/frostfs-cli-v$(FROSTFS_VERSION):
|
|
mkdir -p $(dir $@)
|
|
wget -q "$(CLI_RELEASE_URL)" -O "$@"
|
|
chmod +x "$@"
|
|
|
|
bin/frostfs-node-v$(FROSTFS_VERSION):
|
|
mkdir -p $(dir $@)
|
|
wget -q "$(NODE_RELEASE_URL)" -O "$@"
|
|
chmod +x "$@"
|
|
|
|
bin/frostfs-ir-v$(FROSTFS_VERSION):
|
|
mkdir -p $(dir $@)
|
|
wget -q "$(IR_RELEASE_URL)" -O "$@"
|
|
chmod +x "$@"
|
|
|
|
bin/neo-go-v$(NEOGO_VERSION):
|
|
mkdir -p $(dir $@)
|
|
wget -q "$(NEOGO_RELEASE_URL)" -O "$@"
|
|
chmod +x "$@"
|
|
|
|
bin/locode.db:
|
|
mkdir -p $(dir $@)
|
|
wget -q "$(LOCODE_RELEASE_URL)" -O - | gunzip > $@-v$(FROSTFS_LOCODE_VERSION)
|
|
ln -sf $(notdir $@)-v$(FROSTFS_LOCODE_VERSION) $@
|
|
|
|
define math
|
|
$(shell bash -c "echo $$(($(1)))")
|
|
endef
|