2023-04-22 08:10:11 -05:00
|
|
|
.PHONY: README.md log
|
2022-11-06 12:59:24 -06:00
|
|
|
|
2022-10-21 13:02:25 -05:00
|
|
|
all: README.md
|
2023-02-25 14:05:25 -06:00
|
|
|
reset
|
2021-10-06 11:17:43 -05:00
|
|
|
@echo
|
2023-02-25 14:05:25 -06:00
|
|
|
@echo "make examples # will run all the Example demos and commands"
|
2022-11-13 08:53:03 -06:00
|
|
|
@echo "make update # full git update of all the dependencies"
|
2021-10-06 11:17:43 -05:00
|
|
|
@echo
|
2023-02-25 14:05:25 -06:00
|
|
|
make clean
|
2022-11-13 08:53:03 -06:00
|
|
|
make plugins
|
2021-10-06 11:17:43 -05:00
|
|
|
|
2023-03-12 08:47:16 -05:00
|
|
|
build-dep:
|
|
|
|
apt install -f libgtk-3-dev
|
|
|
|
|
2019-05-08 15:04:18 -05:00
|
|
|
# should update every go dependancy (?)
|
|
|
|
update:
|
2021-10-06 11:17:43 -05:00
|
|
|
git pull
|
|
|
|
go get -v -t -u ./...
|
|
|
|
|
2023-02-25 14:05:25 -06:00
|
|
|
deb:
|
|
|
|
cd debian && make
|
2023-03-12 08:47:16 -05:00
|
|
|
dpkg-deb -c go-wit-gui*.deb
|
2023-02-25 14:05:25 -06:00
|
|
|
-wit mirrors
|
|
|
|
|
|
|
|
examples: \
|
2023-03-01 11:35:36 -06:00
|
|
|
all \
|
2023-03-12 08:47:16 -05:00
|
|
|
cmds-helloworld \
|
2023-02-25 14:05:25 -06:00
|
|
|
cmds-buttonplugin \
|
|
|
|
cmds-console-ui-helloworld \
|
2023-03-01 11:35:36 -06:00
|
|
|
cmds-textbox \
|
|
|
|
cmds-debug
|
2022-10-19 13:23:22 -05:00
|
|
|
|
2022-11-09 08:38:50 -06:00
|
|
|
cmds-buttonplugin:
|
|
|
|
make -C cmds/buttonplugin
|
2022-10-17 22:39:03 -05:00
|
|
|
|
2022-11-09 08:38:50 -06:00
|
|
|
cmds-console-ui-helloworld:
|
|
|
|
make -C cmds/console-ui-helloworld
|
|
|
|
|
2023-03-12 08:47:16 -05:00
|
|
|
# this is the most basic one. This syntax should always work
|
2022-11-09 08:38:50 -06:00
|
|
|
cmds-helloworld:
|
2022-10-16 08:07:13 -05:00
|
|
|
make -C cmds/helloworld
|
2022-10-17 22:39:03 -05:00
|
|
|
|
2022-11-09 08:38:50 -06:00
|
|
|
cmds-debug:
|
2023-03-01 11:35:36 -06:00
|
|
|
-make -C cmds/debug
|
2022-11-09 08:38:50 -06:00
|
|
|
|
|
|
|
cmds-textbox:
|
|
|
|
make -C cmds/textbox
|
2022-10-16 08:07:13 -05:00
|
|
|
|
2023-03-12 08:47:16 -05:00
|
|
|
cmds-helloconsole:
|
|
|
|
make -C cmds/plugin-consoleonly
|
|
|
|
|
2022-10-21 13:29:15 -05:00
|
|
|
# sync repo to the github backup
|
2022-11-14 14:30:28 -06:00
|
|
|
# git remote add github git@github.com:witorg/gui.git
|
2023-03-01 11:35:36 -06:00
|
|
|
# git remote add github2 git@github.com:wit-go/gui.git
|
2022-10-21 13:29:15 -05:00
|
|
|
github:
|
|
|
|
git push origin master
|
2023-04-22 13:53:07 -05:00
|
|
|
git push origin devel
|
|
|
|
git push origin --tags
|
2022-10-21 13:29:15 -05:00
|
|
|
git push github master
|
2023-03-29 23:03:04 -05:00
|
|
|
git push github devel
|
2023-03-01 18:17:41 -06:00
|
|
|
git push github --tags
|
2022-11-13 08:53:03 -06:00
|
|
|
@echo
|
2023-03-01 11:35:36 -06:00
|
|
|
@echo check https://github.com/wit-go/gui
|
2022-11-13 08:53:03 -06:00
|
|
|
@echo
|
2022-10-21 13:29:15 -05:00
|
|
|
|
2022-10-16 08:07:13 -05:00
|
|
|
doc:
|
2022-10-19 13:23:22 -05:00
|
|
|
GO111MODULE="off" godoc -v
|
2022-10-21 11:40:08 -05:00
|
|
|
|
2023-04-22 08:34:09 -05:00
|
|
|
goget:
|
|
|
|
GO111MODULE="off" go get -v -t -u
|
|
|
|
make -C toolkit/gocui goget
|
2023-04-24 06:22:14 -05:00
|
|
|
make -C toolkit/andlabs goget
|
2022-10-21 11:40:08 -05:00
|
|
|
|
|
|
|
# GO111MODULE=on go install github.com/posener/goreadme/cmd/goreadme@latest (worked Oct 20 2022)
|
2022-10-21 13:02:25 -05:00
|
|
|
README.md: doc.go
|
2023-04-22 08:10:11 -05:00
|
|
|
-goreadme -factories -types -functions -variabless > README-goreadme.md
|
2022-11-09 08:38:50 -06:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f toolkit/*.so
|
2023-02-25 14:05:25 -06:00
|
|
|
cd debian && make clean
|
2022-11-06 12:59:24 -06:00
|
|
|
|
2023-04-03 10:26:47 -05:00
|
|
|
plugins: plugins-gocui plugins-andlabs
|
2022-11-13 08:53:03 -06:00
|
|
|
|
|
|
|
plugins-gocui:
|
2023-04-22 08:34:09 -05:00
|
|
|
make -C toolkit/gocui
|
2022-11-13 08:53:03 -06:00
|
|
|
|
2022-11-14 14:30:28 -06:00
|
|
|
plugins-andlabs:
|
|
|
|
cd toolkit/andlabs/ && GO111MODULE="off" go build -buildmode=plugin -o ../andlabs.so
|
|
|
|
# make -C toolkit/andlabs
|
2022-11-13 08:53:03 -06:00
|
|
|
|
|
|
|
objdump:
|
|
|
|
objdump -t toolkit/andlabs.so |less
|
2023-04-22 08:10:11 -05:00
|
|
|
|
|
|
|
log:
|
|
|
|
reset
|
|
|
|
tail -f /tmp/witgui.* /tmp/guilogfile
|