From b0e7052c10c349a5fd6807b106ad5b114ed1dd1d Mon Sep 17 00:00:00 2001 From: antanst Date: Thu, 16 Jan 2025 22:35:31 +0200 Subject: [PATCH] Add tidy & update Makefile targets --- Makefile | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 78c15dc..0eb837c 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ -SHELL := /usr/local/bin/oksh +SHELL := /bin/env oksh export PATH := $(PATH) -all: fmt lintfix test clean build +all: fmt lintfix tidy test clean build clean: - rm ./main + rm -f ./gemini-grc debug: @echo "PATH: $(PATH)" @@ -18,6 +18,9 @@ debug: test: go test ./... +tidy: + go mod tidy + # Format code fmt: gofumpt -l -w . @@ -32,4 +35,13 @@ lintfix: fmt golangci-lint run --fix build: - go build ./main.go + go build -o gemini-grc ./main.go + +show-updates: + go list -m -u all + +update: + go get -u all + +update-patch: + go get -u=patch all