From 2d417c60fdcd8356c18fcd1e7c7d42d3af3e89dd Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 7 Dec 2024 16:48:45 -0600 Subject: attempting an automated test app --- go-clone-test/Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 go-clone-test/Makefile (limited to 'go-clone-test/Makefile') diff --git a/go-clone-test/Makefile b/go-clone-test/Makefile new file mode 100644 index 0000000..181acea --- /dev/null +++ b/go-clone-test/Makefile @@ -0,0 +1,28 @@ +VERSION = $(shell git describe --tags) +GUIVERSION = $(shell git describe --tags) +BUILDTIME = $(shell date +%Y.%m.%d_%H%M) + +all: build + +build: goimports + GO111MODULE=off go build \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + +vet: + GO111MODULE=off go vet + +goimports: + goimports -w *.go + # // to globally reset paths: + # // gofmt -w -r '"go.wit.com/gui/gadgets" -> "go.wit.com/lib/gadgets"' *.go + +gocui: build + reset + ./go-clone-test --gui gocui + +install: goimports + GO111MODULE=off go install \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + +force: build + ./go-clone-test --force -- cgit v1.2.3