summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f09e2fc..02c1f06 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,12 @@
+VERSION = $(shell git describe --tags)
+
all: plugin
plugin:
GO111MODULE="off" go build -v -x -buildmode=plugin -o ../andlabs.so
-pluginreal:
- go build -v -x -buildmode=plugin -o ~/go/lib/andlabs.so
+install:
+ go build -buildmode=plugin -o ~/go/lib/andlabs-${VERSION}.so
goget:
GO111MODULE="off" go get -v -t -u