summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-01 11:42:31 -0600
committerJeff Carr <[email protected]>2025-02-01 11:42:31 -0600
commita78cd82dcdea71fbeb15a6b938780a11077a167c (patch)
treed2ec02469cc9fc50c3afac431a8ebd26df5c0e29 /Makefile
parenta8a918655a4831c3682730fdf7fe54de98837681 (diff)
GPL 3.0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 853c4ff..becff5b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,14 @@
VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d)
-all: clean gocui.so
+all: gocui.so
@#ldd gocui.so
gocui.so: 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}"
-install: clean
+install:
go build -buildmode=plugin -o ~/go/lib/gocui-${VERSION}.so \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
cd ~/go/lib && ln -f -s gocui-${VERSION}.so gocui.so
@@ -44,8 +44,5 @@ redomod:
GO111MODULE= go mod init
GO111MODULE= go mod tidy
-view:
- autogenpb --proto view.proto
-
-view.pb.go: view.proto
+proto:
autogenpb --proto view.proto