Skip to content

Commit 88c10ba

Browse files
committed
[SAM] fixing make clean
1 parent d0d41ba commit 88c10ba

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

hardware/arduino/sam/system/libsam/build_gcc/gcc.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ AS = $(CROSS_COMPILE)as
2626
NM = $(CROSS_COMPILE)nm
2727
ifeq ($(OS),Windows_NT)
2828
RM=cs-rm -Rf
29+
#RM=del /s /f
2930
else
3031
RM=rm -Rf
3132
endif

hardware/arduino/sam/system/libsam/build_gcc/sam3.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ $(OUTPUT_LIB): $(addprefix $(OUTPUT_PATH)/, $(C_OBJ)) $(addprefix $(OUTPUT_PATH)
175175

176176
.PHONY: clean
177177
clean:
178-
@echo --- Cleaning $(CHIP) files
179-
-@"$(RM)" $(OUTPUT_PATH) 1>$(DEV_NUL) 2>&1
180-
-@"$(RM)" $(subst /,$(SEP),$(OUTPUT_BIN)/$(OUTPUT_LIB)) 1>$(DEV_NUL) 2>&1
181-
-@"$(RM)" $(subst /,$(SEP),$(OUTPUT_BIN)/$(OUTPUT_LIB)).txt 1>$(DEV_NUL) 2>&1
178+
@echo --- Cleaning $(CHIP) files $(OUTPUT_PATH) $(subst /,$(SEP),$(OUTPUT_BIN)/$(OUTPUT_LIB))
179+
-@$(RM) $(OUTPUT_PATH)
180+
-@$(RM) $(subst /,$(SEP),$(OUTPUT_BIN)/$(OUTPUT_LIB)) 1>$(DEV_NUL) 2>&1
181+
-@$(RM) $(subst /,$(SEP),$(OUTPUT_BIN)/$(OUTPUT_LIB)).txt 1>$(DEV_NUL) 2>&1
182182

183183
# dependencies
184184
$(addprefix $(OUTPUT_PATH)/,$(C_OBJ)): $(OUTPUT_PATH)/%.o: $(PROJECT_BASE_PATH)/chip.h $(wildcard $(PROJECT_BASE_PATH)/include/*.h) $(wildcard $(CMSIS_BASE_PATH)/*.h)

0 commit comments

Comments
 (0)