blob: d94a15f0a0388fdfe9d6b98670fc737becc51dbf (
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
|
VERSION = $(shell git describe --tags)
all:
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
|