go back to the go basic build (again)
rule of thumb: don't do anything smart in a Makefile
This commit is contained in:
parent
6c444a641a
commit
bb416dad68
21
Makefile
21
Makefile
|
@ -1,10 +1,15 @@
|
||||||
.PHONY: debian
|
.PHONY: build debian
|
||||||
|
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
# GO111MODULE=off go build -o build main.go
|
# 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:
|
||||||
goimports -w *.go
|
goimports -w *.go
|
||||||
|
@ -44,16 +49,16 @@ endif
|
||||||
make nocui gocui andlabs
|
make nocui gocui andlabs
|
||||||
|
|
||||||
nocui:
|
nocui:
|
||||||
# go build -C nocui -v -buildmode=plugin -o ../nocui.so
|
GO111MODULE=off go build -C ../nocui -v -buildmode=plugin -o ../nocui.so
|
||||||
make -C ../nocui
|
# make -C ../nocui
|
||||||
|
|
||||||
gocui:
|
gocui:
|
||||||
# go build -C gocui -v -buildmode=plugin -o ../gocui.so
|
GO111MODULE=off go build -C ../gocui -v -buildmode=plugin -o ../gocui.so
|
||||||
make -C ../gocui
|
# make -C ../gocui
|
||||||
|
|
||||||
andlabs:
|
andlabs:
|
||||||
# go build -C andlabs -v -buildmode=plugin -o ../andlabs.so
|
GO111MODULE=off go build -C ../andlabs -v -buildmode=plugin -o ../andlabs.so
|
||||||
make -C ../andlabs
|
# make -C ../andlabs
|
||||||
|
|
||||||
build-dep:
|
build-dep:
|
||||||
apt install -f libgtk-3-dev
|
apt install -f libgtk-3-dev
|
||||||
|
|
Loading…
Reference in New Issue