summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-06 01:52:16 -0600
committerJeff Carr <[email protected]>2024-12-06 01:52:16 -0600
commitbdfdf5b2c33e5966d6faaad57fab4749676dd5c8 (patch)
treedd6a6e1b21249c39312c463670600e838f81cd52
parent3b22b50a2b9312a27218f2096d6d0a2dae2c115d (diff)
standard build rulesv0.21.5
-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