aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-09-04 13:12:08 +0700
committerShulhan <ms@kilabit.info>2024-09-04 14:04:37 +0700
commitad7edcb804e60434cdf0ed78d42e57058c592ec3 (patch)
treee731cd95e2210bece034947b15124034832681fb /Makefile
parentf6866e5645f1da1823f29592fda2aa161e70d655 (diff)
downloadgorankusu-ad7edcb804e60434cdf0ed78d42e57058c592ec3.tar.xz
make: add task "build"
This is so we can build again if its failed, after lint and test has passed.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files 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