30 lines
531 B
Makefile
30 lines
531 B
Makefile
all: plugin
|
|
ldd ../gocui.so
|
|
|
|
plugin:
|
|
GO111MODULE=off go build -v -buildmode=plugin -o ../gocui.so
|
|
|
|
pluginreal:
|
|
go build -v -buildmode=plugin -o ~/go/lib/toolkits/gocui.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
|