standard build rules

This commit is contained in:
Jeff Carr 2024-12-06 01:52:16 -06:00
parent 3b22b50a2b
commit bdfdf5b2c3
1 changed files with 8 additions and 1 deletions

View File

@ -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