From 225dc1694140637ed72bb3843cd8a5b8371fce73 Mon Sep 17 00:00:00 2001 From: "Gunnar Inge G. Sortland" Date: Fri, 20 Oct 2023 15:40:42 +0200 Subject: [PATCH] Add Makefile, fixes --- Makefile | 4 ++-- RELEASE.md | 10 ++-------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index de19827..127adfb 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -all: buf_build java_package +all: buf java_package clean: find . -type d -name 'target' -exec rm -rf {} + @@ -13,7 +13,7 @@ buf_generate: clean $(wildcard */*.proto) buf_push: clean $(wildcard */*.proto) buf push -buf_build: buf_image buf_generate +buf: buf_image buf_generate # Java java_v0_package: $(wildcard */v0/pom.xml) $(wildcard */v0/*.proto) diff --git a/RELEASE.md b/RELEASE.md index bbafa12..983d0a1 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -66,14 +66,8 @@ now been pushed to github so you'll have to edit the history and do a force push ## Build and release protobuf artifacts ```shell -# Build FileDescriptorSet -make buf_image - -# Generate Go code -make buf_generate - -# Both above -make buf_build +# Build FileDescriptorSet and generate Go code +make buf # Push to Buf Schema Registry make buf_push