diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -1,7 +1,7 @@ VERSION = $(shell git describe --tags) -BUILDTIME = $(shell date +%Y.%m.%d) +BUILDTIME = $(shell date +%Y.%m.%d_%H%M) -run: build +run: goimports build ./go-clone --version vet: @@ -11,8 +11,7 @@ vet: no-gui: build ./go-clone --no-gui -build: - reset +build: goimports GO111MODULE=off go build -v \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" @@ -23,11 +22,12 @@ build-windows: GOOS=windows GOARCH=amd64 GO111MODULE=off go build -v go-clone.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}" goimports: + reset goimports -w *.go # // to globally reset paths: # // gofmt -w -r "go.wit.com/gui -> go.wit.com/gui/gui" . @@ -38,15 +38,10 @@ redomod: GO111MODULE= go mod tidy go mod edit -go=1.20 -reset: - # clear your terminal - reset - gui-gocui: build - reset ./go-clone --gui gocui >/tmp/witgui.log.stderr 2>&1 -nocui: reset build +nocui: build ./go-clone --gui nocui clean: |
