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:
authorSami Hiltunen <shiltunen@gitlab.com>2022-07-27 17:46:59 +0300
committerSami Hiltunen <shiltunen@gitlab.com>2022-07-27 17:46:59 +0300
commit152a89bde858b334f8517b83667be6667b684431 (patch)
tree1a1799c47e5a3a00901d3b7ef156a57e5df637f2
parentf301b48eb56ad3f89702755de92792fbb6807e92 (diff)
parentbddaa3a25f9cbba921cdd574165c9efcffdebfed (diff)
Merge branch 'sh-clean-build' into 'master'
Support `make clean-build` to only clean the build directory See merge request gitlab-org/gitaly!4744
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5c0addbfb..089d606f0 100644
--- a/Makefile
+++ b/Makefile
@@ -456,10 +456,15 @@ notice-up-to-date: ${BUILD_DIR}/NOTICE
notice: ${SOURCE_DIR}/NOTICE
.PHONY: clean
-## Clean up build artifacts.
+## Clean up the Go and Ruby build artifacts.
clean:
rm -rf ${BUILD_DIR} ${SOURCE_DIR}/ruby/.bundle/ ${SOURCE_DIR}/ruby/vendor/bundle/
+.PHONY: clean-build
+## Clean up the build artifacts except for Ruby dependencies.
+clean-build:
+ rm -rf ${BUILD_DIR}
+
.PHONY: clean-ruby-vendor-go
clean-ruby-vendor-go:
mkdir -p ${SOURCE_DIR}/ruby/vendor && find ${SOURCE_DIR}/ruby/vendor -type f -name '*.go' -delete