2024-01-18 23:25:36 -06:00
|
|
|
.PHONY: debian
|
2024-01-01 16:11:54 -06:00
|
|
|
|
2024-01-19 18:31:23 -06:00
|
|
|
|
2024-01-18 00:28:06 -06:00
|
|
|
all: build debian
|
2024-01-19 18:31:23 -06:00
|
|
|
GO111MODULE=off go build -o build main.go
|
2024-01-18 00:28:06 -06:00
|
|
|
|
|
|
|
build: nocui gocui andlabs
|
|
|
|
|
2024-01-19 02:58:11 -06:00
|
|
|
goimports:
|
|
|
|
goimports -w *.go
|
|
|
|
|
2024-01-18 16:42:01 -06:00
|
|
|
redomod:
|
|
|
|
rm -f go.*
|
|
|
|
GO111MODULE= go mod init
|
|
|
|
GO111MODULE= go mod tidy
|
|
|
|
|
2024-01-18 04:12:27 -06:00
|
|
|
download:
|
|
|
|
go get -v go.wit.com/toolkits/debian
|
|
|
|
go get -v go.wit.com/toolkits/tree
|
2024-01-18 23:12:20 -06:00
|
|
|
go get -v go.wit.com/toolkits/nocui
|
|
|
|
go get -v go.wit.com/toolkits/gocui
|
2024-01-18 04:12:27 -06:00
|
|
|
go get -v go.wit.com/toolkits/andlabs
|
|
|
|
|
2024-01-18 00:28:06 -06:00
|
|
|
notes:
|
2024-01-01 16:11:54 -06:00
|
|
|
ifeq ($(GO111MODULE),)
|
|
|
|
@echo
|
|
|
|
@echo If you are compiling this here, you probably want to set GO111MODULE
|
|
|
|
@echo
|
|
|
|
@echo Setting GO111MODULE means that the version you are compiling has plugins
|
|
|
|
@echo that get compiled against this current running version of the code
|
|
|
|
@echo Otherwise, the GO language plugins can complain about being compiled against
|
|
|
|
@echo mis-matched versions
|
|
|
|
@echo
|
|
|
|
@echo export GO111MODULE=off
|
|
|
|
@echo
|
2024-01-13 13:30:13 -06:00
|
|
|
sleep 1
|
2024-01-01 16:11:54 -06:00
|
|
|
endif
|
|
|
|
make nocui gocui andlabs
|
|
|
|
|
|
|
|
nocui:
|
2024-01-13 13:30:13 -06:00
|
|
|
# go build -C nocui -v -buildmode=plugin -o ../nocui.so
|
2024-01-18 00:19:22 -06:00
|
|
|
make -C ../nocui
|
2024-01-01 16:11:54 -06:00
|
|
|
|
|
|
|
gocui:
|
2024-01-13 13:30:13 -06:00
|
|
|
# go build -C gocui -v -buildmode=plugin -o ../gocui.so
|
2024-01-18 00:19:22 -06:00
|
|
|
make -C ../gocui
|
2024-01-01 16:11:54 -06:00
|
|
|
|
|
|
|
andlabs:
|
2024-01-13 13:30:13 -06:00
|
|
|
# go build -C andlabs -v -buildmode=plugin -o ../andlabs.so
|
2024-01-18 00:19:22 -06:00
|
|
|
make -C ../andlabs
|
2024-01-01 16:11:54 -06:00
|
|
|
|
|
|
|
build-dep:
|
|
|
|
apt install -f libgtk-3-dev
|
|
|
|
|
|
|
|
# should update every go dependancy (?)
|
|
|
|
update:
|
|
|
|
git pull
|
|
|
|
go get -v -t -u ./...
|
|
|
|
|
2024-01-03 16:53:18 -06:00
|
|
|
debian:
|
2024-01-01 16:11:54 -06:00
|
|
|
cd debian && make
|
2024-01-18 16:46:34 -06:00
|
|
|
@#dpkg-deb -c ../go-gui-toolkit*.deb
|
|
|
|
@#-wit mirrors
|
2024-01-01 16:11:54 -06:00
|
|
|
|
|
|
|
goget:
|
|
|
|
go get -v -t -u
|
|
|
|
make -C toolkit/gocui goget
|
|
|
|
make -C toolkit/andlabs goget
|
|
|
|
|
|
|
|
clean:
|
2024-01-18 00:28:06 -06:00
|
|
|
rm -f ../*.so
|
2024-01-03 16:53:18 -06:00
|
|
|
cd debian && make clean
|
2024-01-01 16:11:54 -06:00
|
|
|
|
|
|
|
plugins: plugins-gocui plugins-andlabs
|
|
|
|
|
|
|
|
plugins-gocui:
|
|
|
|
go build -C toolkit/gocui -v -buildmode=plugin -o ../gocui.so
|
|
|
|
go build -C toolkit/nocui -v -buildmode=plugin -o ../nocui.so
|
|
|
|
|
|
|
|
plugins-andlabs:
|
|
|
|
go build -C toolkit/andlabs -v -buildmode=plugin -o ../andlabs.so
|
|
|
|
|
|
|
|
objdump:
|
|
|
|
objdump -t toolkit/andlabs.so |less
|
|
|
|
|
|
|
|
log:
|
|
|
|
reset
|
|
|
|
tail -f /tmp/witgui.* /tmp/guilogfile
|
|
|
|
|
|
|
|
submit-to-docs:
|
|
|
|
GOPROXY=https://proxy.golang.org GO111MODULE=on go get go.wit.com/gui@v1.0.0
|