summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-29 07:31:26 -0600
committerJeff Carr <[email protected]>2025-01-29 12:27:10 -0600
commitce11f999f9282e9489e77eb1f9d6c08ae9c9b725 (patch)
tree33ae6c702d91c5eddfe4ecd0be68bf907733a394 /Makefile
parenta16b53c2895669f7f21728334371ab79680699bf (diff)
start moving to protobuf. fix mouse clicks (kinda)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1875872..1c4c38f 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ BUILDTIME = $(shell date +%Y.%m.%d)
all: clean gocui.so
@#ldd gocui.so
-gocui.so:
+gocui.so: view.pb.go goimports
GO111MODULE=off go build -v -work -buildmode=plugin -o gocui.so \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
@@ -20,6 +20,8 @@ custom:
clean:
rm -f gocui gocui.so
+ rm -f *.pb.go
+ go-mod-clean --purge
# Test the README.md & doc.go file
# this runs pkgsite, the binary that does dev.go.dev
@@ -41,3 +43,6 @@ redomod:
rm -f go.*
GO111MODULE= go mod init
GO111MODULE= go mod tidy
+
+view.pb.go: view.proto
+ autogenpb --proto view.proto