forked from filecoin-project/go-state-types
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (32 loc) · 766 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
GO_BIN ?= go
GOLINT ?= golangci-lint
all: build lint test tidy
.PHONY: all
build:
$(GO_BIN) build ./...
.PHONY: build
test:
$(GO_BIN) test ./...
.PHONY: test
test-coverage:
$(GO_BIN) test -coverprofile=coverage.out ./...
.PHONY: test-coverage
tidy:
$(GO_BIN) mod tidy
.PHONY: tidy
gen:
$(GO_BIN) run ./gen/gen.go
$(GO_BIN) run ./manifest/gen/gen.go
$(GO_BIN) run ./proof/gen/gen.go
$(GO_BIN) run ./builtin/v8/gen/gen.go
$(GO_BIN) run ./builtin/v9/gen/gen.go
$(GO_BIN) run ./builtin/v10/gen/gen.go
$(GO_BIN) run ./builtin/v11/gen/gen.go
$(GO_BIN) run ./builtin/v12/gen/gen.go
$(GO_BIN) run ./builtin/v13/gen/gen.go
$(GO_BIN) run ./builtin/v14/gen/gen.go
$(GO_BIN) run ./builtin/v15/gen/gen.go
.PHONY: gen
lint:
$(GOLINT) run ./...
.PHONY: lint