more correct build

This commit is contained in:
Jeff Carr 2024-12-06 01:50:45 -06:00
parent 6f08f22ca8
commit 331e75e348
1 changed files with 5 additions and 2 deletions

View File

@ -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