finger/Makefile
Gustavo Maronato e2ea9cd975
All checks were successful
Go / checks (push) Successful in 50s
readme and makefile updates
2023-09-20 11:52:46 -03:00

24 lines
348 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 ./...
run:
go run main.go serve
clean:
go clean
rm ${BINARY_NAME}
lint:
golangci-lint run
lint-fix:
golangci-lint run --fix