autogenpb/Makefile

36 lines
733 B
Makefile
Raw Normal View History

2024-11-29 08:30:19 -06:00
VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d)
2024-11-29 08:33:47 -06:00
run: clean build
2024-11-29 08:30:19 -06:00
./autogenpb
vet:
@GO111MODULE=off go vet
@echo this go library package builds okay
build:
GO111MODULE=off go build \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
install:
GO111MODULE=off go install \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
goimports:
goimports -w *.go
# // to globally reset paths:
# // gofmt -w -r "go.wit.com/gui -> go.wit.com/gui/gui" .
redomod:
rm -f go.*
GO111MODULE= go mod init
GO111MODULE= go mod tidy
reset:
# clear your terminal
reset
clean:
2024-11-29 08:33:47 -06:00
-rm test.sort.pb.go
2024-11-29 08:30:19 -06:00
-rm autogenpb