From 9a7d8f89465105fda78e7e7d086ca24d975ef548 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 18 Jan 2024 00:28:06 -0600 Subject: fix paths to build debian package Signed-off-by: Jeff Carr --- Makefile | 58 ++++++---------------------------------------------------- 1 file changed, 6 insertions(+), 52 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d673548..687f719 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ .PHONY: debian nocui gocui andlabs -all: - # reset - @echo - @echo This Requires working IPv6 - @echo +all: build debian + +build: nocui gocui andlabs + +notes: ifeq ($(GO111MODULE),) @echo @echo If you are compiling this here, you probably want to set GO111MODULE @@ -32,14 +32,6 @@ andlabs: # go build -C andlabs -v -buildmode=plugin -o ../andlabs.so make -C ../andlabs -something: -ifeq (,$(wildcard go.mod)) - go mod init gui - go mod tidy -endif - make clean - make plugins - build-dep: apt install -f libgtk-3-dev @@ -53,51 +45,13 @@ debian: dpkg-deb -c go-gui-toolkit*.deb -wit mirrors -examples: \ - all \ - examples-helloworld \ - examples-buttons \ - examples-console-ui-helloworld - -# this is the most basic one. This syntax should always work -examples-helloworld: - make -C examples/helloworld - -examples-buttons: - make -C examples/buttons - -examples-console-ui-helloworld: - make -C examples/console-ui-helloworld - -# sync repo to the github backup -# git remote add github git@github.com:witorg/gui.git -# git remote add github2 git@github.com:wit-go/gui.git -github: - git push origin master - git push origin devel - git push origin --tags - git push github master - git push github devel - git push github --tags - @echo - @echo check https://github.com/wit-go/gui - @echo - -redomod: - rm -f go.* - GO111MODULE= go mod init - GO111MODULE= go mod tidy - -doc: - godoc -v - goget: go get -v -t -u make -C toolkit/gocui goget make -C toolkit/andlabs goget clean: - rm -f *.so + rm -f ../*.so cd debian && make clean plugins: plugins-gocui plugins-andlabs -- cgit v1.2.3