diff options
| author | Jeff Carr <[email protected]> | 2024-12-19 10:31:42 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-19 10:31:42 -0600 |
| commit | 8f9b66f6c8565f08e18098e330dfe73c22592b9f (patch) | |
| tree | 672c89ed98e4f08a04f35329d1b4779dadeb6575 /blobby/Makefile | |
| parent | c5fb46c60d4a0383e0e3586bd2d4968e8a8907b7 (diff) | |
blobby
Diffstat (limited to 'blobby/Makefile')
| -rw-r--r-- | blobby/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/blobby/Makefile b/blobby/Makefile new file mode 100644 index 0000000..07bcba5 --- /dev/null +++ b/blobby/Makefile @@ -0,0 +1,28 @@ +VERSION = $(shell git describe --tags) +GUIVERSION = $(shell git describe --tags) +BUILDTIME = $(shell date +%s) + +all: build + +build: goimports + GO111MODULE=off go build -v \ + -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 |
