lift 'make clean' to the makefile

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

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

@ -111,6 +111,9 @@ size-map: compile
flash: compile
clean:
rm -rf -- "${OUTPUT_PATH}/*"
%:
$(KALEIDOSCOPE_BIN_DIR)/kaleidoscope-builder $@

Loading…
Cancel
Save