25 lines
341 B
Makefile
25 lines
341 B
Makefile
|
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
|