autogenpb/Makefile

34 lines
650 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-12-01 22:21:09 -06:00
run: vet build
2024-11-29 08:30:19 -06:00
vet:
@GO111MODULE=off go vet
2024-12-01 22:21:09 -06:00
@echo this go binary package should build okay
2024-11-29 08:30:19 -06:00
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
redomod:
rm -f go.*
GO111MODULE= go mod init
GO111MODULE= go mod tidy
2024-11-29 21:49:11 -06:00
go mod edit -go=1.20
2024-11-29 08:30:19 -06:00
reset:
# clear your terminal
reset
clean:
-rm -f go.*
-rm -f autogenpb