summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8fa7f4e..f095df2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,6 @@
+VERSION = $(shell git describe --tags)
+BUILDTIME = $(shell date +%Y.%m.%d)
+
all: goimports plugin
#ldd pixelgl.so
@@ -6,7 +9,11 @@ plugin:
install:
rm -f pixelgo.so
- go build -v -x -buildmode=plugin -o ~/go/lib/pixelgl.so
+ go build -v -x -buildmode=plugin -o ~/go/lib/pixelgl-${VERSION}.so
+ cd ~/go/lib && ln -f -s pixelgl-${VERSION}.so pixelgl.so
+
+clean:
+ rm -f pixelgl pixelg..so
full-plugin:
GO111MODULE=off go build -v -x -buildmode=plugin -o pixelgl.so