summaryrefslogtreecommitdiff
path: root/Makefile
blob: 2d44646de154e5f3543f2f3e412a8e57a11dec44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
VERSION = $(shell git describe --tags)

all: plugin

plugin:
	GO111MODULE=off go build -v -x -buildmode=plugin -o andlabs.so

install:
	rm -f andlabs.so
	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