lyricdownloader/Makefile

28 lines
461 B
Makefile
Raw Normal View History

2024-01-13 03:09:44 +00:00
# Inspired from https://dustinspecker.com/posts/go-combined-unit-integration-code-coverage/ and https://netdevops.me/2023/test-coverage-for-go-integration-tests/
BIN_DIR = $(CURDIR)/bin
BINARY = $(BIN_DIR)/lyricdownloader
.PHONY: clean
clean:
go clean
.PHONY: dep
dep:
go mod tidy
.PHONY: fmt
fmt:
go fmt ./...
.PHONY: lint
lint:
golangci-lint run
.PHONY: build
build:
go build -o $(BINARY)
.PHONY: lint-all
lint-all:
golangci-lint run --enable-all