summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 97cef99..59b21f6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,14 @@
VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d)
-all: gocui.so
- @#ldd gocui.so
+all: goimports vet gocui
+ @ldd gocui.so
-gocui.so: goimports
+vet:
+ @GO111MODULE=off go vet
+ @echo this go plugin builds okay
+
+gocui:
GO111MODULE=off go build -v -work -buildmode=plugin -o gocui.so \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"