diff options
author | Sami Hiltunen <shiltunen@gitlab.com> | 2022-07-27 17:46:59 +0300 |
---|---|---|
committer | Sami Hiltunen <shiltunen@gitlab.com> | 2022-07-27 17:46:59 +0300 |
commit | 152a89bde858b334f8517b83667be6667b684431 (patch) | |
tree | 1a1799c47e5a3a00901d3b7ef156a57e5df637f2 | |
parent | f301b48eb56ad3f89702755de92792fbb6807e92 (diff) | |
parent | bddaa3a25f9cbba921cdd574165c9efcffdebfed (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-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |