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