mirror of
https://github.com/vacp2p/dasy.git
synced 2026-01-09 14:58:06 -05:00
27 lines
451 B
Makefile
27 lines
451 B
Makefile
SHELL := /bin/bash
|
|
|
|
GO111MODULE = on
|
|
|
|
build:
|
|
go build
|
|
.PHONY: build
|
|
|
|
protobuf:
|
|
protoc --go_out=. ./protobuf/*.proto
|
|
.PHONY: protobuf
|
|
|
|
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
|