diff options
| author | Jeff Carr <[email protected]> | 2024-11-16 00:08:34 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-16 00:08:34 -0600 |
| commit | 5ea2e5999bf19c5b0dcd594ce5c646ae2227fcec (patch) | |
| tree | 1a176fbb79c5173317c59d65c2e7634938d4f1b8 | |
| parent | bd2ddb278c2439cb87c62766a0983bd2e1ff6a74 (diff) | |
fix buildv0.2.13
| -rw-r--r-- | Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -1,6 +1,7 @@ .PHONY: build VERSION = $(shell git describe --tags) +BUILDTIME = $(shell date +%Y.%m.%d) # create the go.mod and go.sum if this is a brand new repo REDOMOD = $(shell if [ -e go.sum ]; then echo go.sum exists; else GO111MODULE= go mod init; GO111MODULE= go mod tidy; fi) @@ -33,7 +34,16 @@ all: @echo build worked build: - GO111MODULE=off go build -v -ldflags "-X main.Version=${VERSION} -X gui.GUIVERSION=${VERSION}" + GO111MODULE=off go build \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + +verbose: + GO111MODULE=off go build -v -x \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + +install: + GO111MODULE=off go install \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" # makes a .deb package debian: |
