From 77318986cd9e398d8df82dac6b0a709b4357ae05 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Sun, 26 Feb 2023 00:05:36 +0700 Subject: [PATCH] chore: update make --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 443c9f8..a467b64 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,12 @@ -.PHONY: all test test-color coverage coverage-cli coverate-html lint format build +.PHONY: all test test-color coverage coverage-cli coverate-html lint format build clean all: go mod tidy $(MAKE) test-color $(MAKE) lint $(MAKE) format + $(MAKE) build + $(MAKE) clean test: go test -race -failfast ./... @@ -30,8 +32,12 @@ lint: format: go install github.com/haunt98/gofimports/cmd/gofimports@latest go install mvdan.cc/gofumpt@latest - gofimports -w --company github.com/make-go-great . + gofimports -w --company github.com/make-go-great,github.com/haunt98 . gofumpt -w -extra . build: - go build -o changeloguru-dev ./cmd/changeloguru + $(MAKE) clean + go build ./cmd/changeloguru + +clean: + rm -rf changeloguru