standard build rules
This commit is contained in:
parent
3b22b50a2b
commit
bdfdf5b2c3
9
Makefile
9
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
|
||||
|
|
Loading…
Reference in New Issue