summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-06 01:50:45 -0600
committerJeff Carr <[email protected]>2024-12-06 01:50:45 -0600
commit331e75e348a965e6d697f7fe3702edbafb383984 (patch)
treeb821d18ed86967eb814af93a697f7fc12a8c0110
parent6f08f22ca86e95c3bd8b130773704066d9dcb3c8 (diff)
more correct buildv0.22.8
-rw-r--r--Makefile7
1 files 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