move more of make clean out into the makefile, leaving the "make clean" target in builder so it works for sketches

tmp/arduino-cli-pre-rebase
Jesse Vincent 4 years ago
parent 2104f4db78
commit 98851c0728
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -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

@ -492,15 +492,8 @@ decompile () {
}
clean () {
find_sketch
build_paths
if [ -d "$OUTPUT_PATH" ]; then
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
}

Loading…
Cancel
Save