diff options
| author | Jeff Carr <[email protected]> | 2024-11-16 00:05:55 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-16 00:05:55 -0600 |
| commit | 6bb1b9acd79a8773181876cc83e5b1546330810c (patch) | |
| tree | 7bce42ea6887f449db459465a1779955cec7d2a3 | |
| parent | 3203dfbb0ed5bffa9629e3755a562a40874d57ca (diff) | |
fix makefilev0.21.9v0.21.8v0.21.7v0.21.6v0.21.5v0.21.4v0.21.3v0.21.2v0.21.13v0.21.12v0.21.11v0.21.10
| -rw-r--r-- | Makefile | 29 |
1 files changed, 21 insertions, 8 deletions
@@ -1,24 +1,37 @@ VERSION = $(shell git describe --tags) +BUILDTIME = $(shell date +%Y.%m.%d) -all: all: build - reset ./basicwindow build: - -rm -f basicwindow + 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}" + -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}" + +clean: + -rm -f gadgetwindow -stderr: build - echo "writing to /tmp/basicwindow.out" - ./basicwindow >/tmp/basicwindow.out 2>&1 +# embed the toolkit plugins in the binary +embed: + -rm resources/*.so + touch resources/blank.so + cp -a ~/go/src/go.wit.com/toolkits/*.so resources/ gocui: - ./basicwindow --gui gocui >/tmp/basicwindow.out 2>&1 + ./basicwindow --gui gocui goimports: goimports -w *.go + # // to globally reset paths: + # // gofmt -w -r "go.wit.com/gui -> go.wit.com/gui/gui" . redomod: rm -f go.* |
