Skip to content

Commit

Permalink
refactor(_example): update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
cage1016 committed Oct 22, 2023
1 parent 470ee11 commit 7e91ba9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _example/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ LDFLAGS ?= -X github.com/xxx/ak-test/cmd.EnabledAutoUpdate=$(ENABLED_AUTO_UPDATE
HAVE_GO_BINDATA := $(shell command -v go-bindata 2> /dev/null)
generate: ## go generate
ifndef HAVE_GO_BINDATA
@echo "requires 'go-bindata' (go get -u github.com/kevinburke/go-bindata/go-bindata)"
@echo "requires 'go-bindata' (go install github.com/go-bindata/go-bindata/go-bindata@latest)"
@exit 1 # fail
else
go generate ./...
endif

.PHONY: test
test: ## run tests
go test -v -race -cover -coverprofile coverage.txt -covermode=atomic ./..
go test -v -race -cover -coverprofile coverage.txt -covermode=atomic ./...

.PHONY: build
build: generate ## build the binary
Expand Down

0 comments on commit 7e91ba9

Please sign in to comment.