2024-12-01 00:49:52 -06:00
|
|
|
VERSION = $(shell git describe --tags)
|
2024-12-05 19:08:29 -06:00
|
|
|
BUILDTIME = $(shell date +%Y.%m.%d)
|
2024-12-01 00:49:52 -06:00
|
|
|
|
2024-12-05 19:08:29 -06:00
|
|
|
all: andlabs.so
|
2024-01-17 23:54:19 -06:00
|
|
|
|
2024-12-05 19:08:29 -06:00
|
|
|
andlabs.so:
|
|
|
|
GO111MODULE=off go build -v -buildmode=plugin -o andlabs.so \
|
|
|
|
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
2024-01-17 23:54:19 -06:00
|
|
|
|
2024-12-01 00:49:52 -06:00
|
|
|
install:
|
2024-12-05 17:43:11 -06:00
|
|
|
rm -f andlabs.so
|
2024-12-05 19:08:29 -06:00
|
|
|
go build -v -buildmode=plugin -o ~/go/lib/andlabs-${VERSION}.so \
|
|
|
|
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
2024-02-01 16:28:36 -06:00
|
|
|
|
2024-01-17 23:54:19 -06:00
|
|
|
goget:
|
|
|
|
GO111MODULE="off" go get -v -t -u
|
|
|
|
|
2024-01-19 02:52:57 -06:00
|
|
|
goimports:
|
|
|
|
goimports -w *.go
|
|
|
|
|
2024-01-17 23:54:19 -06:00
|
|
|
redomod:
|
|
|
|
rm -f go.*
|
2024-01-19 02:52:57 -06:00
|
|
|
goimports -w *.go
|
2024-01-17 23:54:19 -06:00
|
|
|
GO111MODULE= go mod init
|
|
|
|
GO111MODULE= go mod tidy
|
|
|
|
|