From ed382bec55be25039e4dcf020d1512139855c9bb Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 9 Nov 2022 08:38:50 -0600 Subject: cleanup of the example commands. more plugin work add a button in two plugins at the same time! added a button in andlabs/ui & gocui attempt a common widget struct between wit/gui & the plugins start handling missing plugins rename Makefile command examples remote examples used for testing filename improvements golang src code uses lowercase and _ in filenames fix crash when button click function == nil fix wrong name 'gocli' -> 'gocui' keep fighting with goreadme generated README.md Signed-off-by: Jeff Carr --- Makefile | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 306800f..8cd82c7 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ all: README.md @echo - @echo "make examples # will run all the examples" + @echo "make cmds # will run all the cmds" @echo "make update # full git update" @echo make -C cmds/helloworld @@ -12,16 +12,22 @@ update: git pull go get -v -t -u ./... -examples: examples-consolemouse examples-helloworld examples-gui-demo +cmds: cmds-buttonplugin cmds-console-ui-helloworld cmds-debug cmds-helloworld cmds-textbox -examples-consolemouse: - make -C cmds/consolemouse +cmds-buttonplugin: + make -C cmds/buttonplugin -examples-helloworld: +cmds-console-ui-helloworld: + make -C cmds/console-ui-helloworld + +cmds-helloworld: make -C cmds/helloworld -examples-gui-demo: - make -C cmds/gui-demo +cmds-debug: + make -C cmds/debug + +cmds-textbox: + make -C cmds/textbox # sync repo to the github backup github: @@ -34,7 +40,11 @@ doc: # 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.md + goreadme -factories -types -functions -variabless > README-goreadme.md + +clean: + rm -f toolkit/*.so plugins: - GO111MODULE="off" go build -buildmode=plugin -o toolkit/gocli.so toolkit/gocli/greeter.go + # GO111MODULE="off" go build -buildmode=plugin -o toolkit/test.so toolkit/gocui/*.go + make -C toolkit/gocui -- cgit v1.2.3