From e07c6a35fd5d2ca1b3a6c09d9781d21f676f52f2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 10 Jan 2025 07:40:24 -0600 Subject: detect that autogenpb has already been run and exit --- example/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'example/Makefile') diff --git a/example/Makefile b/example/Makefile index bc7b48d..1f3d285 100644 --- a/example/Makefile +++ b/example/Makefile @@ -17,10 +17,12 @@ build: GO111MODULE=off go build -v withMutex: - ../autogenpb --proto fruit.proto --package main --mutex + ../autogenpb --proto fruit.proto --package main + ../autogenpb --proto file.proto --package main withoutMutex: - ../autogenpb --proto fruit.proto --package main + ../autogenpb --proto fruit.proto --package main --mutex=false + ../autogenpb --proto file.proto --package main --mutex=false goimports: goimports -w *.go -- cgit v1.2.3