From bb416dad6878c5f96635dc74af90a1d3d994efc7 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 29 Feb 2024 19:17:09 -0600 Subject: [PATCH] go back to the go basic build (again) rule of thumb: don't do anything smart in a Makefile --- Makefile | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index aaa8160..966342c 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,15 @@ -.PHONY: debian +.PHONY: build debian all: build # GO111MODULE=off go build -o build main.go -build: nocui gocui andlabs +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 + GO111MODULE=off go build -C ../andlabs -v -buildmode=plugin -o ../andlabs.so + GO111MODULE=off go build -C ../pixelgl -v -buildmode=plugin -o ../pixelgl.so + GO111MODULE=off go build -C ../fyne -v -buildmode=plugin -o ../fyne.so goimports: goimports -w *.go @@ -44,16 +49,16 @@ endif make nocui gocui andlabs nocui: - # go build -C nocui -v -buildmode=plugin -o ../nocui.so - make -C ../nocui + GO111MODULE=off go build -C ../nocui -v -buildmode=plugin -o ../nocui.so + # make -C ../nocui gocui: - # go build -C gocui -v -buildmode=plugin -o ../gocui.so - make -C ../gocui + GO111MODULE=off go build -C ../gocui -v -buildmode=plugin -o ../gocui.so + # make -C ../gocui andlabs: - # go build -C andlabs -v -buildmode=plugin -o ../andlabs.so - make -C ../andlabs + GO111MODULE=off go build -C ../andlabs -v -buildmode=plugin -o ../andlabs.so + # make -C ../andlabs build-dep: apt install -f libgtk-3-dev