From 14a0cc4b7b9a238c940d4d97b92b931227180a59 Mon Sep 17 00:00:00 2001 From: dearblue Date: Fri, 18 Aug 2023 22:36:21 +0900 Subject: [PATCH] Revert "Rake: update task clean to remove `bin` and `build` folders" --- Rakefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 32d969f4a..2bcd71a7b 100644 --- a/Rakefile +++ b/Rakefile @@ -53,8 +53,10 @@ task :build => MRuby.targets.flat_map{|_, build| build.products} desc "clean all built and in-repo installed artifacts" task :clean do - rm_rf "#{MRUBY_ROOT}/bin" - rm_rf "#{MRUBY_ROOT}/build" + MRuby.each_target do |build| + rm_rf build.build_dir + rm_f build.products + end puts "Cleaned up target build directory" end