summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-13 16:16:18 -0600
committerJeff Carr <[email protected]>2024-12-13 16:16:18 -0600
commit8c68cff7624dd797533122509a7d86ed316090c5 (patch)
tree5cae23d1f096a619180533c24f19380970cca121 /Makefile
parent02bbd75ce1d80f845673c30a004e35f9ce491ab6 (diff)
don't work on non-master branches
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
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