summaryrefslogtreecommitdiff
path: root/testautogen/Makefile
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-29 14:08:33 -0600
committerJeff Carr <[email protected]>2024-11-29 14:08:33 -0600
commit98b366e2df3da8771a4840136d4b671658025c47 (patch)
tree9cc89f88b919ec0c060aeec65189a3343ba6ae1f /testautogen/Makefile
parent908c9056751fb5ed372af962db7869fb2a7faf6a (diff)
better append/sort stuff
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'testautogen/Makefile')
-rw-r--r--testautogen/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/testautogen/Makefile b/testautogen/Makefile
index 4bbcdef..a1bf723 100644
--- a/testautogen/Makefile
+++ b/testautogen/Makefile
@@ -3,10 +3,11 @@ BUILDTIME = $(shell date +%Y.%m.%d)
test: vet
-all: clean test.pb.go run
+all: clean test.pb.go forgeConfig.pb.go run
run:
../autogenpb --proto test.proto --lobase gitTag --upbase GitTag --sort "ByPath,Refname" --marshal GitTags --append Refname
+ ../autogenpb --proto forgeConfig.proto --sort "ByPath,GoPath" --append GoPath
vet:
@GO111MODULE=off go vet
@@ -31,3 +32,8 @@ test.pb.go: test.proto
cd ~/go/src && protoc --go_out=. --proto_path=go.wit.com/apps/autogenpb/testautogen \
--go_opt=Mtest.proto=go.wit.com/apps/autogenpb/testautogen \
test.proto
+
+forgeConfig.pb.go: forgeConfig.proto
+ cd ~/go/src && protoc --go_out=. --proto_path=go.wit.com/apps/autogenpb/testautogen \
+ --go_opt=MforgeConfig.proto=go.wit.com/apps/autogenpb/testautogen \
+ forgeConfig.proto