diff options
| author | Jeff Carr <[email protected]> | 2025-10-26 10:49:12 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-26 10:49:12 -0500 |
| commit | d22db5dabfc6f8330b38adedd0528192ae2d47d8 (patch) | |
| tree | 725c410000f83009b1ce6a6d2da6712db082eb9c /Makefile | |
| parent | 2a466a788a0f78dddce2ca544db6e34f0b8e2f12 (diff) | |
| parent | 51027a1b04b3da1a81d617d16a07ac1242d90a81 (diff) | |
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -1,4 +1,19 @@ -all: generate vet +VERSION = $(shell git describe --tags) +BUILDTIME = $(shell date +%s) + +all: install + +go-build: goimports + GO111MODULE=off go build \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + +install: goimports + GO111MODULE=off go install \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + +install-verbose: goimports + GO111MODULE=off go install -v -x \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" generate: clean go mod init |
