-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (37 loc) · 831 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
53
#
# Generated by @zondax/cli
#
-include Makefile.settings.mk
# Get all directories under cmd
CMDS=$(shell find cmd -type d)
default: build
build:
@go build ./znats/...
mod-tidy:
@go mod tidy
mod-update:
@go get -u ./...
output/%: cmd/%
mkdir -p $(dir $@)
go build -o $@ ./$<
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
mod-tidy-check:
go mod tidy
git diff --exit-code -- go.mod go.sum
lint:
golangci-lint --version
golangci-lint run
test:
go test ./znats/...
########################################
zondax-update:
@npx -y @zondax/cli@latest update
# include if exists
-include Makefile.local.mk
.PHONY: *