-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (34 loc) · 733 Bytes
/
Makefile
File metadata and controls
51 lines (34 loc) · 733 Bytes
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
# Original from github.com/lainio/err2
PKG1 := github.com/lainio/ic/chain
PKG2 := github.com/lainio/ic/node
PKGS := $(PKG1) $(PKG2) $(PKG3) $(PKG4)
SRCDIRS := $(shell go list -f '{{.Dir}}' $(PKGS))
GO := go
#GO := go1.18beta1
build:
@$(GO) build -o /dev/null $(PKGS)
deps:
@$(GO) get -t ./...
test1:
$(GO) test $(PKG1)
test2:
$(GO) test $(PKG2)
test:
$(GO) test $(PKGS)
testv:
$(GO) test $(PKGS) -v
testj:
$(GO) test $(PKGS) -json
bench:
@$(GO) test -bench=. $(PKGS)
bench1:
@$(GO) test -bench=. $(PKG1)
bench2:
@$(GO) test -bench=. $(PKG2)
vet: | test
@$(GO) vet $(PKGS)
gofmt:
@echo Checking code is gofmted
@test -z "$(shell gofmt -s -l -d -e $(SRCDIRS) | tee /dev/stderr)"
lint:
@golangci-lint run