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 10:20:06 -06:00
|
|
|
make -C testautogen/ all
|
|
|
|
make -C testSort/
|
2024-11-29 08:30:19 -06:00
|
|
|
|
2024-11-29 11:15:40 -06:00
|
|
|
test:
|
2024-11-29 11:32:27 -06:00
|
|
|
./autogenpb --dry-run --proto test.proto --lobase gitTag --upbase GitTag --sort "ByPath,Refname"
|
2024-11-29 11:15:40 -06:00
|
|
|
|
2024-11-29 08:30:19 -06:00
|
|
|
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
|
2024-11-29 08:54:49 -06:00
|
|
|
make -C testSort/ goimports
|
2024-11-29 08:30:19 -06:00
|
|
|
|
|
|
|
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:
|
2024-11-29 10:20:06 -06:00
|
|
|
-rm -f autogenpb
|
|
|
|
make -C testautogen/ clean
|
|
|
|
make -C testSort/ clean
|