From c460e7e7cc5f2d1f6bfe08a11b3202d3457add3e Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Sun, 26 Feb 2023 00:03:06 +0700 Subject: [PATCH] chore: update make --- Makefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 75eb36b..8e09277 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +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: test-color lint format +all: go mod tidy + $(MAKE) test-color + $(MAKE) lint + $(MAKE) format + $(MAKE) build + $(MAKE) clean test: go test -race -failfast ./... @@ -25,8 +30,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: + $(MAKE) clean go build ./cmd/populatedb + +clean: + rm -rf populatedb