summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-11 03:42:14 -0600
committerJeff Carr <[email protected]>2025-01-11 03:42:14 -0600
commitd8464bf21ffada0be45116e7a6c4573bcadbce1b (patch)
tree9b1e175e83bb930b41060e14c244b36692d605d4 /example
parent74641713f87bc2a8981ae4d6c53fe17ce0febc06 (diff)
now to rename the files
Diffstat (limited to 'example')
-rw-r--r--example/Makefile19
1 files changed, 13 insertions, 6 deletions
diff --git a/example/Makefile b/example/Makefile
index c8b849f..22a8c65 100644
--- a/example/Makefile
+++ b/example/Makefile
@@ -10,13 +10,20 @@ modproto: clean withMutex goimports vet build
rawproto: clean withoutMutex goimports vet build
./example
+deleteproto: clean
+ ../autogenpb --proto fruit.proto --package main --delete
+ make build
+
vet:
@GO111MODULE=off go vet
-build:
+rawbuild:
+ GO111MODULE=off go build -v
+
+build: goimports vet
GO111MODULE=off go build -v
-simpleMutexProtoc:
+simpleMutexProtoc: clean
../autogenpb --proto fruit.proto --package main
# why does this fail to compile? I'm not sure. maybe someone smart can figure it out
@@ -24,18 +31,18 @@ simpleMutexProtoc:
# about the RWmutex lock being copied and GO fails to compile
# I'm don't grok what is going on. This autogenerated code should
# provide as simple as one could hope for automated way to try to debug it though!
-simpleMutexProtocWithDeleteCopy:
+simpleMutexProtocWithDeleteCopy: clean
../autogenpb --proto fruit.proto --package main --delete
-simpleMutexGlobal:
+simpleMutexGlobal: clean
../autogenpb --proto fruit.proto --package main --mutex=false
-withMutex:
+withMutex: clean
../autogenpb --proto fruit.proto --package main
../autogenpb --proto file.proto --package main
../autogenpb --proto patchset.proto --package main
-withoutMutex:
+withoutMutex: clean
../autogenpb --proto fruit.proto --package main --mutex=false
../autogenpb --proto file.proto --package main --mutex=false
../autogenpb --proto patchset.proto --package main --mutex=false