Skip to content

Commit

Permalink
build: Improve Makefile alignment with cosmos-sdk (#2915)
Browse files Browse the repository at this point in the history
* Makefile: Improve alignment with cosmos-sdk

Ref cosmos/cosmos-sdk@6c1c2cc

* accept suggestion to allow skipping mod verify

Co-authored-by: Richard Gibson <[email protected]>

---------

Co-authored-by: MSalopek <[email protected]>
  • Loading branch information
gibson042 and MSalopek authored Feb 8, 2024
1 parent d65dc6f commit 454dcdb
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,15 @@ vulncheck: $(BUILDDIR)/
build-linux: go.sum
LEDGER_ENABLED=false GOOS=linux GOARCH=amd64 $(MAKE) build

go-mod-cache: go.sum
@echo "--> Download go modules to local cache"
@go mod download

go.sum: go.mod
@echo "--> Ensure dependencies have not been modified"
@go mod verify
@echo "--> Ensure dependencies have not been modified unless suppressed by SKIP_MOD_VERIFY"
ifndef SKIP_MOD_VERIFY
go mod verify
endif
go mod tidy
@echo "--> Download go modules to local cache"
go mod download

draw-deps:
@# requires brew install graphviz or apt-get install graphviz
Expand Down Expand Up @@ -279,7 +281,7 @@ test-docker-push: test-docker
@docker push ${TEST_DOCKER_REPO}:$(shell git rev-parse --abbrev-ref HEAD | sed 's#/#_#g')
@docker push ${TEST_DOCKER_REPO}:latest

.PHONY: all build-linux install format lint go-mod-cache draw-deps clean build \
.PHONY: all build-linux install format lint draw-deps clean build \
docker-build-debug docker-build-hermes docker-build-all


Expand Down

0 comments on commit 454dcdb

Please sign in to comment.