From 5c345a875a1bcdb6fe3ffe5bf003cb0a1c0c4aba Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 8 Oct 2025 05:11:38 -0500 Subject: add "make generate" --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2bc55ef..10ecca7 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,16 @@ all: block.pb.go verbose # -fixup --gui-check-plugin ../../../toolkits/gocui/gocui.so fixup --gui gocui --gui-verbose --gui-file ../../toolkits/gocui/gocui.so +default: generate install + +generate: clean + go mod init + go mod tidy + go generate + +go-generate: + rm -f *.pb.go *.patch + go-build: goimports GO111MODULE=off go build \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" -- cgit v1.2.3