go back to the go basic build (again)

rule of thumb: don't do anything smart in a Makefile
This commit is contained in:
Jeff Carr 2024-02-29 19:17:09 -06:00
parent 6c444a641a
commit bb416dad68
1 changed files with 13 additions and 8 deletions

View File

@ -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