blob: ac7887125885067129b9125669a0609b95a62082 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
VERSION = $(shell git describe --tags)
all:
-rm resources/*.so
touch resources/blank.so
-cp -a ~/go/src/go.wit.com/toolkits/*.so resources/ # embed the toolkit plugins in the binary
GO111MODULE=off go build -v -x \
-ldflags "-X main.VERSION=${VERSION}"
./helloworld
install:
GO111MODULE=off go install -v -x \
-ldflags "-X main.VERSION=${VERSION}"
./helloworld
gocui:
GO111MODULE=off go build -v -x
./helloworld --gui gocui >/tmp/helloworld.stdout 2>&1
goimports:
goimports -w *.go
redomod:
rm -f go.*
goimports -w *.go
GO111MODULE= go mod init
GO111MODULE= go mod tidy
|