Files
localthreat/api/Makefile
T
2020-10-24 07:27:23 -03:00

13 lines
211 B
Makefile

NAME=api
CGO_ENABLED=0
GOOS=linux
static: lint test
@go build -a -ldflags '-extldflags "-static"' -o $(NAME) .
test: lint
@go test ./...
lint: main.go
@go fmt ./...
@go vet ./...
@go fix ./...
.PHONY: lint