summaryrefslogtreecommitdiff
path: root/Makefile
blob: c390cd0d02e3e6ed8cf69bc6afd32fafdf47d07c (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
.PHONY: README.md

all: README.md
	reset
	@echo
	@echo "make examples     # will run all the Example demos and commands"
	@echo "make update       # full git update of all the dependencies"
	@echo
	make clean
	make plugins

build-dep:
	apt install -f libgtk-3-dev

# should update every go dependancy (?)
update:
	git pull
	go get -v -t -u ./...

deb:
	cd debian && make
	dpkg-deb -c go-wit-gui*.deb
	-wit mirrors

examples:   \
	all \
	cmds-helloworld \
	cmds-buttonplugin \
	cmds-console-ui-helloworld \
	cmds-textbox \
	cmds-debug

cmds-buttonplugin:
	make -C cmds/buttonplugin

cmds-console-ui-helloworld:
	make -C cmds/console-ui-helloworld

# this is the most basic one. This syntax should always work
cmds-helloworld:
	make -C cmds/helloworld

cmds-debug:
	-make -C cmds/debug

cmds-textbox:
	make -C cmds/textbox

cmds-helloconsole:
	make -C cmds/plugin-consoleonly

# sync repo to the github backup
# git remote add github [email protected]:witorg/gui.git
# git remote add github2 [email protected]:wit-go/gui.git
github:
	git push origin master
	git push github master
	git push github devel
	git push github --tags
	@echo
	@echo check https://github.com/wit-go/gui
	@echo

doc:
	GO111MODULE="off" godoc -v


# GO111MODULE=on go install github.com/posener/goreadme/cmd/goreadme@latest (worked Oct 20 2022)
README.md: doc.go
	goreadme -factories -types -functions -variabless > README-goreadme.md 

clean:
	rm -f toolkit/*.so
	cd debian && make clean

plugins: plugins-gocui plugins-democui plugins-andlabs

plugins-gocui:
	make -C  toolkit/gocui

plugins-democui:
	make -C  toolkit/democui

plugins-andlabs:
	cd toolkit/andlabs/ && GO111MODULE="off" go build -buildmode=plugin -o ../andlabs.so
	# make -C  toolkit/andlabs

objdump:
	objdump -t toolkit/andlabs.so |less