diff --git a/bin/kaleidoscope-builder b/bin/kaleidoscope-builder index e09bb6f2..5643497e 100755 --- a/bin/kaleidoscope-builder +++ b/bin/kaleidoscope-builder @@ -87,10 +87,6 @@ _set_build_paths() { -_absolute_filename() { - echo "$(cd "$(dirname "$1")" && pwd)/$(basename "$1")" -} - _find_sketch() { if [ -z "${SKETCH_FILE_PATH}" ] || [ ! -f "${SKETCH_FILE_PATH}" ]; then # Didn't find a sketch @@ -185,13 +181,6 @@ cmd_disassemble() { "${AVR_OBJDUMP}" -C -d "${ELF_FILE_PATH}" } -cmd_clean() { - _set_up_environment - if [ -d "$OUTPUT_PATH" ]; then - rm -rf -- "${OUTPUT_PATH}" - fi -} - _set_up_environment() { _find_sketch _set_build_paths diff --git a/etc/sketch-arduino-cli.mk b/etc/sketch-arduino-cli.mk index 26cbab0f..201ff4c4 100644 --- a/etc/sketch-arduino-cli.mk +++ b/etc/sketch-arduino-cli.mk @@ -111,6 +111,9 @@ size-map: compile flash: compile +clean: + rm -rf -- "${OUTPUT_PATH}/*" + %: $(KALEIDOSCOPE_BIN_DIR)/kaleidoscope-builder $@