From ad7edcb804e60434cdf0ed78d42e57058c592ec3 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Wed, 4 Sep 2024 13:12:08 +0700 Subject: make: add task "build" This is so we can build again if its failed, after lint and test has passed. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index dda1d9f..dce897b 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,7 @@ COVER_OUT:=cover.out COVER_HTML:=cover.html .PHONY: all -all: lint test - go run ./internal/cmd/gorankusu build +all: lint test build .PHONY: init init: @@ -30,6 +29,10 @@ test: CGO_ENABLED=1 go test -failfast -timeout=1m -race -coverprofile=$(COVER_OUT) ./... go tool cover -html=$(COVER_OUT) -o $(COVER_HTML) +.PHONY: build +build: + go run ./internal/cmd/gorankusu build + .PHONY: dev dev: go run ./internal/cmd/gorankusu -- cgit v1.3