Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2023-05-22 15:00:58 +0300
committerToon Claes <toon@gitlab.com>2023-05-22 15:13:42 +0300
commit95a8d523d478073efe6ae6815d08826a84527c8d (patch)
treefd2210dda703e7dca2dd77079ee23c1f1ee37a89 /Makefile
parentf224319700838fb22c5ab52e397fe25006894ba1 (diff)
Makefile: Create output directory for proto gem
When the target `build-proto-gem` runs in a clean environment, it fails because the `_build` directory does not exist yet. Fix this by creating the output directory from in the Makefile recipe.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index cb8e54140..d72431c27 100644
--- a/Makefile
+++ b/Makefile
@@ -492,6 +492,7 @@ lint-proto: ${PROTOC} ${PROTOLINT} ${PROTOC_GEN_GITALY_LINT}
.PHONY: build-proto-gem
## Build the Ruby Gem that contains Gitaly's Protobuf definitons.
build-proto-gem:
+ ${Q}rm -rf "${BUILD_DIR}/gitaly.gem" && mkdir -p ${BUILD_DIR}
${Q}cd "${SOURCE_DIR}"/tools/protogem && bundle install
${Q}"${SOURCE_DIR}"/tools/protogem/build-proto-gem -o "${BUILD_DIR}/gitaly.gem" ${BUILD_GEM_OPTIONS}