From c4e48c6403936c7f5d1f60d590fc3a91fecdc83d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 6 Dec 2024 01:52:07 -0600 Subject: [PATCH] standard build rules --- Makefile | 6 ++++-- 1 file 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)