summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-06 01:52:07 -0600
committerJeff Carr <[email protected]>2024-12-06 01:52:07 -0600
commitc4e48c6403936c7f5d1f60d590fc3a91fecdc83d (patch)
tree65df5bfe0974bbcbd8db8a584aa48da28ad80e3b
parent4a36e0300b6933c94a7f0e556949f993f4ba6b41 (diff)
-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)