blob: 8ea100bde275fec3b55b1d6d94b17c95e23fd808 (
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:
all: build
reset
./basicwindow
build:
-rm -f basicwindow
GO111MODULE=off go build -v -x \
-ldflags "-X main.VERSION=${VERSION}"
stderr: build
echo "writing to /tmp/basicwindow.out"
./basicwindow >/tmp/basicwindow.out 2>&1
gocui:
./basicwindow --gui gocui >/tmp/basicwindow.out 2>&1
goimports:
goimports -w *.go
redomod:
rm -f go.*
goimports -w *.go
GO111MODULE= go mod init
GO111MODULE= go mod tidy
|