gocui/Makefile

54 lines
1.2 KiB
Makefile
Raw Normal View History

2024-11-14 21:48:44 -06:00
VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d)
2024-11-14 21:48:44 -06:00
all: goimports vet gocui
@ldd gocui.so
vet:
@GO111MODULE=off go vet
@echo this go plugin builds okay
gocui:
2025-02-07 03:09:16 -06:00
GO111MODULE=off go build -v -buildmode=plugin -o gocui.so \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
2024-11-14 21:48:44 -06:00
2025-02-01 11:42:31 -06:00
install:
go build -buildmode=plugin -o ~/go/lib/gocui-${VERSION}.so \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
2024-12-06 01:51:45 -06:00
cd ~/go/lib && ln -f -s gocui-${VERSION}.so gocui.so
2024-12-01 00:50:07 -06:00
2024-11-14 21:48:44 -06:00
# for testing custom golang
custom:
# GO111MODULE=off go build -v
GO111MODULE=off go build -v -work -buildmode=blah
clean:
rm -f gocui gocui.so
2025-01-29 12:28:03 -06:00
rm -f *.pb.go *.patch
go-mod-clean --purge
2024-12-06 01:51:45 -06:00
# 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
2025-02-01 11:42:31 -06:00
proto:
2025-02-08 06:34:51 -06:00
autogenpb --proto gocuiView.proto
2025-02-01 12:52:25 -06:00
make goimports