diff options
| author | Jeff Carr <[email protected]> | 2024-12-13 16:16:18 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-13 16:16:18 -0600 |
| commit | 8c68cff7624dd797533122509a7d86ed316090c5 (patch) | |
| tree | 5cae23d1f096a619180533c24f19380970cca121 /Makefile | |
| parent | 02bbd75ce1d80f845673c30a004e35f9ce491ab6 (diff) | |
don't work on non-master branches
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |
