-
Notifications
You must be signed in to change notification settings - Fork 49
/
Makefile
52 lines (37 loc) · 930 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#
# Generated by @zondax/cli
#
-include Makefile.settings.mk
# Get all directories under cmd
CMDS=$(shell find cmd -type d)
# Strip cmd/ from directory names and generate output binary names
BINS=$(subst cmd/,output/,$(CMDS))
default: build
build:
@go build
mod-tidy:
@go mod tidy
mod-clean:
@go clean -modcache
mod-update: mod-clean
@go get -u -t all
@go mod tidy
generate: mod-tidy
@go generate ./internal/...
version: build
./output/$(APP_NAME) version
clean:
go clean
gitclean:
git clean -xfd
git submodule foreach --recursive git clean -xfd
install_lint:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin latest
check-modtidy:
go mod tidy
git diff --exit-code -- go.mod go.sum
lint:
golangci-lint --version
golangci-lint run
test:
go test -tags ledger_mock -v -race ./... -coverprofile=coverage.txt -covermode=atomic