Skip to content

Commit

Permalink
fix_: makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-sirotin committed Oct 2, 2024
1 parent 271535f commit c7792b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -318,13 +318,13 @@ setup-dev: ##@setup Install all necessary tools for development
setup-dev:
echo "Replaced by Nix shell. Use 'make shell' or just any target as-is."

generate: SHELL := /bin/sh
generate: PACKAGES ?= $$(go list -e ./... | grep -v "/contracts/")
generate: GO_GENERATE_FAST ?= $(if $(shell which go-generate-fast),"true")
generate: export GO_GENERATE_FAST_DEBUG ?= false
generate: export GO_GENERATE_FAST_RECACHE ?= false
generate: ##@ Run generate for all given packages using go-generate-fast, fallback to `go generate` (e.g. for docker)
@if [ "$(GO_GENERATE_FAST)" = "true" ]; then \
@GOROOT=$$(go env GOROOT); \
if [ "$(GO_GENERATE_FAST)" = "true" ]; then \
go-generate-fast -x $(PACKAGES); \
else \
go generate -x $(PACKAGES); \
Expand Down

0 comments on commit c7792b0

Please sign in to comment.