.PHONY: docker-image docker-image: git-submodule-setup @DOCKER_BUILDKIT=1 docker build --ssh default -t axelar/tofnd . .PHONY: copy-binary copy-binary-from-image: guard-SEMVER ./scripts/copy-binaries-from-image.sh mv bin/tofnd bin/tofnd-linux-amd64-${SEMVER} cd bin && sha256sum * > SHA256SUMS .PHONY: upload-binaries-to-s3 upload-binaries-to-s3: guard-S3_PATH aws s3 cp ./bin ${S3_PATH}/ --recursive .PHONY: docker-image-all docker-image-all: git-submodule-setup make docker-image .PHONY: git-submodule-setup git-submodule-setup: git submodule init git submodule update guard-%: @ if [ -z '${${*}}' ]; then echo 'Environment variable $* not set' && exit 1; fi