frostfs-dev-env/services/morph_chain/artifacts.mk
Alex Vanin a2df248141 [#2] Prepare environment for preview-3
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-22 18:03:14 +03:00

15 lines
427 B
Makefile

get.morph_chain: JF_TOKEN?=
get.morph_chain: MORPH_CHAIN_DUMP_NAME=neo.morph.dump.
get.morph_chain: MORPH_CHAIN_PATH?=
get.morph_chain:
@mkdir -p ./vendor
ifeq (${MORPH_CHAIN_PATH},)
@echo "⇒ Download morph chain dump from ${MORPH_CHAIN_URL}"
@curl \
-sS "${MORPH_CHAIN_URL}" \
-o ./vendor/morph_chain.gz
else
@echo "⇒ Copy local archive ${MORPH_CHAIN_PATH}"
@cp ${MORPH_CHAIN_PATH} ./vendor/morph_chain.gz
endif