2024-02-29 13:45:36 -06:00
|
|
|
GUIVERSION = $(shell cd ~/go/src/go.wit.com/gui; git describe --tags)
|
|
|
|
|
|
|
|
all: build
|
|
|
|
|
|
|
|
vet:
|
2024-02-29 11:38:11 -06:00
|
|
|
@#GO111MODULE=off go build
|
|
|
|
@GO111MODULE=off go vet -x
|
|
|
|
@echo this go library package builds okay
|
|
|
|
|
|
|
|
build:
|
2024-02-29 13:45:36 -06:00
|
|
|
@GO111MODULE=off go build -v -x -o junk \
|
|
|
|
-ldflags "-X main.GUIVERSION=${GUIVERSION}" \
|
|
|
|
-ldflags "-X go.wit.com/gui.GUIVERSION=${GUIVERSION}"
|
2024-02-29 11:38:11 -06:00
|
|
|
./junk
|
|
|
|
|
|
|
|
goimports:
|
|
|
|
goimports -w *.go
|
|
|
|
|
|
|
|
redomod:
|
|
|
|
rm -f go.*
|
|
|
|
goimports -w *.go
|
|
|
|
GO111MODULE= go mod init
|
|
|
|
GO111MODULE= go mod tidy
|
|
|
|
|
2024-02-29 13:45:36 -06:00
|
|
|
|
|
|
|
actual: redomod
|
|
|
|
GO111MODULE= go build -x -o junk
|
|
|
|
./junk
|