You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
649 B

app := pound
PKGS := $(shell go list ./... | grep -v vendor)
OUTDIR := .bin
BINARY := $(OUTDIR)/$(app)
GOBIN := $(GOPATH)/bin
LINTBIN := $(GOBIN)/golangci-lint
clean_list = $(OUTDIR)
.PHONY: build clean dev test publish lint
default: lint test build dev
@mkdir .bin
go build -o $@ $<
dev: clean $(BINARY)
build: $(BINARY)
clean: $(clean_list)
rm -rf $<
@GO111MODULE=off go get
lint: $(LINTBIN)
@go mod tidy -v
$(LINTBIN) run -p bugs -p format -p performance -p unused
go test -v -cover $(PKGS)