Adding simple Makefile

This commit is contained in:
iratusmachina 2024-01-12 22:09:44 -05:00 committed by OLUWADAMILOLA OKUSANYA
parent a4284d56ec
commit 23f3d3b135
1 changed files with 27 additions and 0 deletions

27
Makefile Normal file
View File

@ -0,0 +1,27 @@
# 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