mirror of
https://github.com/haggen/localthreat.git
synced 2026-11-03 04:24:51 +00:00
13 lines
211 B
Makefile
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
|