diff options
| author | Jeff Carr <[email protected]> | 2025-02-08 18:02:50 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-08 18:02:50 -0600 |
| commit | 10b80332d69ac88cb3a46071fd97926901aa8a8d (patch) | |
| tree | dd0245427bfaa0f8241afaf7e864ac4fc58592cf | |
| parent | 0db3c44b86f5bbcbba8b5b66f95cef77b487d6f9 (diff) | |
updates to make plugins load
| -rw-r--r-- | Makefile | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -4,7 +4,7 @@ BUILDTIME = $(shell date +%Y.%m.%d) all: build ./basicwindow -build: +build: goimports vet GO111MODULE=off go build -v -x \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" @@ -17,25 +17,20 @@ install: -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" clean: - -rm -f gadgetwindow + -rm -f basicwindow go.* # 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/ + cp -a ~/go/src/go.wit.com/toolkits/*/*.so resources/ gocui: ./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.* - goimports -w *.go - GO111MODULE= go mod init - GO111MODULE= go mod tidy +vet: + @GO111MODULE=off go vet + @echo this go binary package builds okay |
