gocui/Makefile

38 lines
771 B
Makefile
Raw Permalink Normal View History

2024-11-14 21:48:44 -06:00
VERSION = $(shell git describe --tags)
all: plugin
ldd ../gocui.so
plugin:
2024-11-14 21:48:44 -06:00
GO111MODULE=off go build -v -work -buildmode=plugin -o ../gocui.so
# for testing custom golang
custom:
# GO111MODULE=off go build -v
GO111MODULE=off go build -v -work -buildmode=blah
2024-11-14 21:48:44 -06:00
official:
mkdir -p ~/go/lib/go.wit.com/toolkits/gocui/
go build -v -x -buildmode=plugin -o ~/go/lib/go.wit.com/toolkits/gocui/gocui-${VERSION}.so
# Test the README.md & doc.go file
# this runs pkgsite, the binary that does dev.go.dev
# go install golang.org/x/pkgsite/cmd/pkgsite@latest
pkgsite:
pkgsite
objdump:
objdump -t ../gocui.so |less
log:
reset
tail -f /tmp/witgui.* /tmp/guilogfile
goimports:
goimports -w *.go
redomod:
rm -f go.*
GO111MODULE= go mod init
GO111MODULE= go mod tidy