diff options
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 |
