summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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