From 2b21ee65d7ad92d89fbe457e85756ee996dc4c61 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 7 Dec 2024 16:46:59 -0600 Subject: attempting complete automated testing --- Makefile | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 949368c..209f74d 100644 --- a/Makefile +++ b/Makefile @@ -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: -- cgit v1.2.3