frostfs-dev-env/services/morph_chain/artifacts.mk
2020-07-26 22:05:24 +03:00

15 lines
454 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 VERSION=${MORPH_CHAIN_VERSION}"
@curl \
-sS "https://fs.neo.org/dist/morph.chain.gz" \
-o ./vendor/morph_chain.gz
else
@echo "⇒ Copy local archive ${MORPH_CHAIN_PATH}"
@cp ${MORPH_CHAIN_PATH} ./vendor/morph_chain.gz
endif