summaryrefslogtreecommitdiff
path: root/example/Makefile
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-10 07:40:24 -0600
committerJeff Carr <[email protected]>2025-01-10 07:40:24 -0600
commite07c6a35fd5d2ca1b3a6c09d9781d21f676f52f2 (patch)
treece7a4fd38fff09571739bedd5d6dd00d99cff4b7 /example/Makefile
parentd9e5edb3a8486bc884841137095dd910e42b3a98 (diff)
detect that autogenpb has already been run and exit
Diffstat (limited to 'example/Makefile')
-rw-r--r--example/Makefile6
1 files changed, 4 insertions, 2 deletions
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