go-multiprotocol/Makefile

27 lines
438 B
Makefile
Raw Normal View History

2020-02-28 12:34:06 +00:00
SHELL := /bin/bash
GO111MODULE = on
test:
go test -v ./...
.PHONY: test
lint:
golangci-lint run -v
.PHONY: lint
install-linter:
# install linter
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.17.1
.PHONY: install-linter
vendor:
go mod tidy
go mod vendor
modvendor -copy="**/*.c **/*.h" -v
.PHONY: vendor
generate:
go generate ./...
.PHONY: generate