From 331e75e348a965e6d697f7fe3702edbafb383984 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 6 Dec 2024 01:50:45 -0600 Subject: [PATCH] more correct build --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 30a7a46..460d92e 100644 --- a/Makefile +++ b/Makefile @@ -7,10 +7,13 @@ 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}" -install: - rm -f andlabs.so +install: clean go build -v -buildmode=plugin -o ~/go/lib/andlabs-${VERSION}.so \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + cd ~/go/lib && ln -f -s andlabs-${VERSION}.so andlabs.so + +clean: + rm -f andlabs andlabs.so goget: GO111MODULE="off" go get -v -t -u