add 'make install' for testing

This commit is contained in:
Jeff Carr 2024-12-01 00:50:20 -06:00
parent c5da2ba44c
commit e23b7189d8
1 changed files with 6 additions and 1 deletions

View File

@ -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)