blob: 272b24a95beeb2ff4f66437017645de197264b67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
VERSION = $(shell git describe --tags)
all: plugin
ldd ../gocui.so
plugin:
GO111MODULE=off go build -v -work -buildmode=plugin -o ../gocui.so
install:
go build -buildmode=plugin -o ~/go/lib/gocui-${VERSION}.so
# for testing custom golang
custom:
# GO111MODULE=off go build -v
GO111MODULE=off go build -v -work -buildmode=blah
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
|