TIMESTAMP := $(shell date +%s | xargs printf '0x%x') PWD := $(shell pwd) GORUN = env GO111MODULE=on go run GITVERSION := v1.0.0 LDFLAGSSTRING +=-X main.GitCommit=$(GITCOMMIT) LDFLAGSSTRING +=-X main.GitDate=$(GITDATE) LDFLAGSSTRING +=-X main.GitVersion=$(GITVERSION) LDFLAGS := -ldflags "$(LDFLAGSSTRING)" # build for mainnet build-bk-prod-morph-prod-mainnet-to-morph-node: if [ ! -d dist ]; then mkdir -p dist; fi cd $(PWD)/node && make morphnode-repro cp node/build/bin/morphnode dist/ sha256sum dist/morphnode tar -czvf morph-node.tar.gz dist aws s3 cp morph-node.tar.gz s3://morph-0582-morph-technical-department-mainnet-data/morph-setup/morph-node.tar.gz build-bk-prod-morph-prod-mainnet-to-morph-tx-submitter: if [ ! -d dist ]; then mkdir -p dist; fi env GO111MODULE=on CGO_LDFLAGS="-ldl" CGO_ENABLED=1 go build -v $(LDFLAGS) -o tx-submitter/tx-submitter ./tx-submitter/cmd cp tx-submitter/tx-submitter dist/ tar -czvf tx-submitter.tar.gz dist aws s3 cp tx-submitter.tar.gz s3://morph-0582-morph-technical-department-mainnet-data/morph-setup/tx-submitter.tar.gz # build for qanet build-bk-test-morph-test-qanet-to-morph-node-qanet: if [ ! -d dist ]; then mkdir -p dist; fi cd $(PWD)/node && make build cp node/build/bin/morphnode dist/ cp node/build/bin/tendermint dist/ tar -czvf morph-node.tar.gz dist aws s3 cp morph-node.tar.gz s3://morph-7637-morph-technical-department-qanet-data/morph-setup/morph-node.tar.gz build-bk-test-morph-test-qanet-to-morph-tx-submitter-qanet: if [ ! -d dist ]; then mkdir -p dist; fi env GO111MODULE=on CGO_LDFLAGS="-ldl" CGO_ENABLED=1 go build -v $(LDFLAGS) -o tx-submitter/tx-submitter ./tx-submitter/cmd cp tx-submitter/tx-submitter dist/ tar -czvf tx-submitter.tar.gz dist aws s3 cp tx-submitter.tar.gz s3://morph-7637-morph-technical-department-qanet-data/morph-setup/tx-submitter.tar.gz # build for hoodi build-bk-prod-morph-prod-testnet-to-morph-node-hoodi: if [ ! -d dist ]; then mkdir -p dist; fi cd $(PWD)/node && make build cp node/build/bin/morphnode dist/ cp node/build/bin/tendermint dist/ tar -czvf morph-node.tar.gz dist aws s3 cp morph-node.tar.gz s3://morph-0582-morph-technical-department-testnet-data/testnet/hoodi/morph-setup/morph-node.tar.gz build-bk-prod-morph-prod-testnet-to-morph-tx-submitter-hoodi: if [ ! -d dist ]; then mkdir -p dist; fi env GO111MODULE=on CGO_LDFLAGS="-ldl" CGO_ENABLED=1 go build -v $(LDFLAGS) -o tx-submitter/tx-submitter ./tx-submitter/cmd cp tx-submitter/tx-submitter dist/ tar -czvf tx-submitter.tar.gz dist aws s3 cp tx-submitter.tar.gz s3://morph-0582-morph-technical-department-testnet-data/testnet/hoodi/morph-setup/tx-submitter.tar.gz