From 8c68cff7624dd797533122509a7d86ed316090c5 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 13 Dec 2024 16:16:18 -0600 Subject: don't work on non-master branches --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cc409dd..986396d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ VERSION = $(shell git describe --tags) BUILDTIME = $(shell date +%Y.%m.%d_%H%M) -run: goimports install +run: install go-mod-clean --version vet: @@ -22,7 +22,7 @@ build-windows: GOOS=windows GOARCH=amd64 GO111MODULE=off go build -v go-mod-clean.exe \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" -install: +install: goimports GO111MODULE=off go install \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" @@ -34,3 +34,6 @@ goimports: clean: -rm -f go-mod-clean go.* + +all: install + go-mod-clean --all --auto -- cgit v1.2.3