summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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