summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 560f223..3c2d98a 100644
--- a/Makefile
+++ b/Makefile
@@ -8,10 +8,10 @@ gocui.so:
GO111MODULE=off go build -v -work -buildmode=plugin -o gocui.so \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
-install:
- rm -f gocui.so
+install: clean
go build -buildmode=plugin -o ~/go/lib/gocui-${VERSION}.so \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
+ cd ~/go/lib && ln -f -s gocui-${VERSION}.so gocui.so
# for testing custom golang
custom:
@@ -20,6 +20,7 @@ custom:
clean:
rm -f gocui gocui.so
+
# Test the README.md & doc.go file
# this runs pkgsite, the binary that does dev.go.dev
# go install golang.org/x/pkgsite/cmd/pkgsite@latest