github.com/filecoin-project/specs-actors/v4@v4.0.2/Makefile (about) 1 GO_BIN ?= go 2 all: build lint test tidy 3 .PHONY: all 4 5 build: 6 $(GO_BIN) build ./... 7 .PHONY: build 8 9 test: 10 $(GO_BIN) test ./... 11 $(GO_BIN) test -race ./actors/migration/nv12/test 12 .PHONY: test 13 14 test-migration: 15 $(GO_BIN) test -race ./actors/migration/nv12/test 16 .PHONY: test-migration 17 18 test-coverage: 19 $(GO_BIN) test -coverprofile=coverage.out ./... 20 .PHONY: test-coverage 21 22 tidy: 23 $(GO_BIN) mod tidy 24 .PHONY: tidy 25 26 gen: 27 $(GO_BIN) run ./gen/gen.go 28 .PHONY: gen 29 30 31 # tools 32 toolspath:=support/tools 33 34 $(toolspath)/bin/golangci-lint: $(toolspath)/go.mod 35 @mkdir -p $(dir $@) 36 (cd $(toolspath); go build -tags tools -o $(@:$(toolspath)/%=%) github.com/golangci/golangci-lint/cmd/golangci-lint) 37 38 39 $(toolspath)/bin/no-map-range.so: $(toolspath)/go.mod 40 @mkdir -p $(dir $@) 41 (cd $(toolspath); go build -tags tools -buildmode=plugin -o $(@:$(toolspath)/%=%) github.com/Kubuxu/go-no-map-range/plugin) 42 43 lint: $(toolspath)/bin/golangci-lint $(toolspath)/bin/no-map-range.so 44 $(toolspath)/bin/golangci-lint run ./... 45 .PHONY: lint