2024-02-28 22:01:32 -06:00
|
|
|
VERSION = $(shell git describe --tags)
|
|
|
|
|
2024-02-18 15:09:04 -06:00
|
|
|
all: build
|
2024-01-29 12:51:27 -06:00
|
|
|
./guireleaser
|
2024-01-17 01:55:22 -06:00
|
|
|
|
|
|
|
stderr: build
|
2024-01-29 12:51:27 -06:00
|
|
|
echo "writing to /tmp/guireleaser.stderr"
|
|
|
|
./guireleaser >/tmp/guireleaser.stderr 2>&1
|
2024-01-15 12:43:08 -06:00
|
|
|
|
2024-01-20 16:09:15 -06:00
|
|
|
goimports:
|
|
|
|
goimports -w *.go
|
|
|
|
# // to globally reset paths:
|
|
|
|
# // gofmt -w -r "go.wit.com/gui -> go.wit.com/gui/gui" .
|
|
|
|
|
2024-01-15 12:43:08 -06:00
|
|
|
build:
|
2024-01-09 15:31:11 -06:00
|
|
|
echo "build it!"
|
2024-02-28 22:01:32 -06:00
|
|
|
GO111MODULE=off go build -v -x -ldflags " \
|
|
|
|
-X main.VERSION=${VERSION}"
|
2024-01-17 01:55:22 -06:00
|
|
|
|
|
|
|
install:
|
2024-01-15 08:11:08 -06:00
|
|
|
go install -v -x
|
2024-01-29 12:51:27 -06:00
|
|
|
guireleaser
|
2024-01-09 01:16:00 -06:00
|
|
|
|
2024-01-15 22:56:21 -06:00
|
|
|
check-git-clean:
|
|
|
|
@git diff-index --quiet HEAD -- || (echo "Git repository is dirty, please commit your changes first"; exit 1)
|
|
|
|
|
2024-01-09 01:16:00 -06:00
|
|
|
redomod:
|
|
|
|
rm -f go.*
|
2024-01-09 09:35:54 -06:00
|
|
|
GO111MODULE= go mod init
|
|
|
|
GO111MODULE= go mod tidy
|