finger/Makefile
2023-09-18 01:36:29 -03:00

24 lines
350 B
Makefile

BINARY_NAME=finger
VERSION=$(shell git describe --tags --abbrev=0 || echo "undefined")
all: lint build test
build:
go build -ldflags="-X 'main.version=${VERSION}'" -o ${BINARY_NAME} main.go
test:
go test -v ./...
serve:
go run main.go serve
clean:
go clean
rm ${BINARY_NAME}
lint:
golangci-lint run
lint-fix:
golangci-lint run --fix