2022-11-06 12:59:24 -06:00
|
|
|
.PHONY: README.md
|
|
|
|
|
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
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
# 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
|
2022-11-09 08:38:50 -06:00
|
|
|
goreadme -factories -types -functions -variabless > README-goreadme.md
|
|
|
|
|
|
|
|
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-03-12 08:47:16 -05:00
|
|
|
plugins: plugins-gocui plugins-democui plugins-andlabs
|
2022-11-13 08:53:03 -06:00
|
|
|
|
|
|
|
plugins-gocui:
|
2022-11-09 08:38:50 -06:00
|
|
|
make -C toolkit/gocui
|
2022-11-13 08:53:03 -06:00
|
|
|
|
2023-03-12 08:47:16 -05:00
|
|
|
plugins-democui:
|
|
|
|
make -C toolkit/democui
|
|
|
|
|
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
|