From e23b7189d84040bc6e71709c6f840baad1042660 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 1 Dec 2024 00:50:20 -0600 Subject: [PATCH] add 'make install' for testing --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 356b929..db22ce1 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,13 @@ +VERSION = $(shell git describe --tags) + all: plugin ldd ../nocui.so plugin: - go build -v -x -buildmode=plugin -o ../nocui.so + GO111MODULE="off" go build -buildmode=plugin -o ../nocui.so + +install: + go build -buildmode=plugin -o ~/go/lib/nocui-${VERSION}.so check-git-clean: @git diff-index --quiet HEAD -- || (echo "Git repository is dirty, please commit your changes first"; exit 1)