From 95a8d523d478073efe6ae6815d08826a84527c8d Mon Sep 17 00:00:00 2001 From: Toon Claes Date: Mon, 22 May 2023 14:00:58 +0200 Subject: 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. --- Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile') 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} -- cgit v1.2.3