diff --git a/Makefile b/Makefile index 09ec799a..8d003505 100644 --- a/Makefile +++ b/Makefile @@ -151,6 +151,10 @@ smoke-sketches: $(SMOKE_SKETCHES) .PHONY: force +clean: + rm -rf -- "testing/googletest/build" + rm -rf -- "_build" + @BOARD_HARDWARE_PATH="$(BOARD_HARDWARE_PATH)" $(KALEIDOSCOPE_BUILDER_DIR)/kaleidoscope-builder clean $(SMOKE_SKETCHES): force @BOARD_HARDWARE_PATH="$(BOARD_HARDWARE_PATH)" $(KALEIDOSCOPE_BUILDER_DIR)/kaleidoscope-builder $@ compile diff --git a/bin/kaleidoscope-builder b/bin/kaleidoscope-builder index 14ce90f8..d0ff2280 100755 --- a/bin/kaleidoscope-builder +++ b/bin/kaleidoscope-builder @@ -492,16 +492,9 @@ decompile () { } clean () { - find_sketch - build_paths - rm -rf -- "${OUTPUT_PATH}" - rm -rf -- "${BUILD_PATH}" - kaleidoscope_dir="$(dirname "$0")/.." - if [ -d "${kaleidoscope_dir}/testing/googletest/build" ]; then - ( cd "${kaleidoscope_dir}/testing/googletest/build" && - cmake .. && - make clean) - fi + if [ -d "$OUTPUT_PATH" ]; then + rm -rf -- "${OUTPUT_PATH}" + fi } reset_device() {