From fce9170f75d9bcc10699ff738948591bf637f28b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 9 Oct 2025 01:03:37 -0500 Subject: zsh stuff --- Makefile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f27bc29..2f87593 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ -# git remote add github git@github.com:wit-go/gui-debugger.git +all: auto.pb.go goimports vet + @echo This GO code passes the compile checks -all: generate goimports vet - @echo common init code for common packages +auto.pb.go: auto.proto + make generate generate: clean go mod init @@ -22,5 +23,10 @@ clean: -rm -f go.* go-mod-clean purge -auto.pb.go: auto.proto - autogenpb --proto auto.proto +# fixes your numbers if you move things around +# THIS TOTALLY BREAKS THE POINT OF PROTOBUF +# To work around that breaking, you must change the version +# also, all the wrapping code must support this. which it doesn't +proto-renumber: clean + autogenpb --renumber --proto auto.proto + make goimports vet -- cgit v1.2.3