summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index c9403cc..3485f90 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,15 @@
all: forgeConfig.pb.go patch.pb.go set.pb.go goimports vet
generate: clean
- autogenpb --proto patchset.proto
+ go mod init
+ go mod tidy
+ go generate
+
+go-generate:
+ rm -f *.pb.go *.patch
+ go get go.wit.com/apps/autogenpb
+
+forgeConfig.pb.go: forgeConfig.proto
autogenpb --proto forgeConfig.proto
vet:
@@ -24,9 +32,6 @@ clean:
-rm -f go.*
go-mod-clean purge
-forgeConfig.pb.go: forgeConfig.proto
- autogenpb --proto forgeConfig.proto
-
# patchset.pb.go: patchset.proto
# autogenpb --proto patchset.proto