29 lines
468 B
Makefile
29 lines
468 B
Makefile
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
|
|
|