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
|
||||
# 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
|
||||
|
|
Loading…
Reference in New Issue