andlabs/Makefile

23 lines
370 B
Makefile

VERSION = $(shell git describe --tags)
all: plugin
plugin:
GO111MODULE="off" go build -v -x -buildmode=plugin -o ../andlabs.so
install:
go build -buildmode=plugin -o ~/go/lib/andlabs-${VERSION}.so
goget:
GO111MODULE="off" go get -v -t -u
goimports:
goimports -w *.go
redomod:
rm -f go.*
goimports -w *.go
GO111MODULE= go mod init
GO111MODULE= go mod tidy