.PHONY: build debian all: build # GO111MODULE=off go build -o build main.go build: @#GO111MODULE=off go build -C ../nocui -v -buildmode=plugin -o nocui.so @#GO111MODULE=off go build -C ../gocui -v -buildmode=plugin -o gocui.so make -C ../nocui make -C ../gocui make -C ../andlabs make -C ../pixelgl make -C ../fyne ls -l ../*/*.so install: rm -f ../*.so make -C ../nocui install make -C ../gocui install make -C ../andlabs install make -C ../pixelgl install make -C ../fyne install goimports: goimports -w *.go # Test the README.md & doc.go file # this runs pkgsite, the binary that does dev.go.dev # go install golang.org/x/pkgsite/cmd/pkgsite@latest pkgsite: GO111MODULE= pkgsite redomod: rm -f go.* GO111MODULE= go mod init GO111MODULE= go mod tidy download: -go-clone go.wit.com/toolkits/debian -go-clone go.wit.com/toolkits/tree -go-clone go.wit.com/toolkits/nocui -go-clone go.wit.com/toolkits/gocui -go-clone go.wit.com/toolkits/andlabs -go-clone go.wit.com/toolkits/pixelgl -go-clone go.wit.com/toolkits/fyne notes: 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 sleep 1 endif make nocui gocui andlabs nocui: GO111MODULE=off go build -C ../nocui -v -buildmode=plugin -o ../nocui.so # make -C ../nocui gocui: GO111MODULE=off go build -C ../gocui -v -buildmode=plugin -o ../gocui.so # make -C ../gocui andlabs: GO111MODULE=off go build -C ../andlabs -v -buildmode=plugin -o ../andlabs.so # make -C ../andlabs build-dep: apt install -f libgtk-3-dev # should update every go dependancy (?) update: git pull go get -v -t -u ./... debian: cd debian && make @#dpkg-deb -c ../go-gui-toolkit*.deb @#-wit mirrors goget: go get -v -t -u make -C toolkit/gocui goget make -C toolkit/andlabs goget clean: rm -f ../*.so ../*/*.so rm -rf ~/go/lib/go-gui/* rm -rf ~/go/lib/*.so make -C ../nocui clean make -C ../gocui clean make -C ../andlabs clean make -C ../pixelgl clean make -C ../fyne clean 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