diff options
| author | Jeff Carr <[email protected]> | 2024-11-16 00:07:00 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-16 00:07:00 -0600 |
| commit | 8afc4c713576b3509e15942dfd3dae5e8b8b8906 (patch) | |
| tree | 67c7403be1d509666e49a5bc7ba688b22ab95597 /Makefile | |
| parent | a26ae2bcc18e133ea8a280cef3eb44ba6a96a4ec (diff) | |
fix buildv0.22.2
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 28 |
1 files changed, 16 insertions, 12 deletions
@@ -1,9 +1,21 @@ -# to build by hand export GO111MODULE=off +VERSION = $(shell git describe --tags) +BUILDTIME = $(shell date +%Y.%m.%d) all: build - reset ./forge +build: + 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}" + only-me: build reset ./forge --only-me @@ -14,21 +26,13 @@ stderr: build goimports: goimports -w *.go - # // to globally reset paths: - # // gofmt -w -r '"go.wit.com/gui/gadgets" -> "go.wit.com/lib/gadgets"' *.go + @# // to globally reset paths: + @# // gofmt -w -r '"go.wit.com/gui/gadgets" -> "go.wit.com/lib/gadgets"' *.go gocui: build reset ./forge --gui gocui >/tmp/forge.log 2>&1 -build: - echo "build it!" - GO111MODULE=off go build -v -x - -install: - go install -v -x - forge - check-git-clean: @git diff-index --quiet HEAD -- || (echo "Git repository is dirty, please commit your changes first"; exit 1) |
