labtime/Makefile

25 lines
341 B
Makefile
Raw Normal View History

2024-09-23 23:46:32 +02:00
BINARY_NAME=labtime
.PHONY: all
all: lint test build
.PHONY: clean
clean:
go clean -i ./...
rm -rf build
.PHONY: lint
lint:
@echo "Running golangci-lint"
golangci-lint run
.PHONY: test
test:
@echo "Running tests"
go test -v ./...
.PHONY: build
build:
@echo "Building binary"
go build -o build/$(BINARY_NAME) cmd/labtime/main.go