summaryrefslogtreecommitdiff
path: root/go-clone-test/Makefile
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-07 16:48:45 -0600
committerJeff Carr <[email protected]>2024-12-07 16:48:45 -0600
commit2d417c60fdcd8356c18fcd1e7c7d42d3af3e89dd (patch)
tree8573aeb32fc222083bb917bb5b267face47cfae8 /go-clone-test/Makefile
parent354a070efff0b5d709c9cc1f46631dbd453f7827 (diff)
attempting an automated test appv0.0.11
Diffstat (limited to 'go-clone-test/Makefile')
-rw-r--r--go-clone-test/Makefile28
1 files changed, 28 insertions, 0 deletions
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