summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index cfb0524..b2f3288 100644
--- a/Makefile
+++ b/Makefile
@@ -9,10 +9,12 @@ nocui.so:
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
install: clean
- go build -buildmode=plugin -o ~/go/lib/nocui-${VERSION}.so
+ go build -buildmode=plugin -o ~/go/lib/nocui-${VERSION}.so \
+ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
+ cd ~/go/lib && ln -f -s nocui-${VERSION}.so nocui.so
clean:
- rm -f nocui.so
+ rm -f nocui nocui.so
check-git-clean:
@git diff-index --quiet HEAD -- || (echo "Git repository is dirty, please commit your changes first"; exit 1)