Lines Matching refs:clean
4 # clean Clean up the project
156 MSG_CLEAN_DIRS = "RMDIR $(strip $(clean-dirs))"
216 clean-files :=
217 clean-dirs :=
219 clean-files += $(wildcard $(target) $(project).map)
220 clean-files += $(wildcard $(project).hex $(project).bin)
221 clean-files += $(wildcard $(project).lss $(project).sym)
222 clean-files += $(wildcard $(build))
336 clean-files += $(wildcard $(obj-y))
337 clean-files += $(dep-files)
339 clean-dirs += $(call reverse,$(sort $(wildcard $(dir $(obj-y)))))
370 .PHONY: clean
371 clean:
372 @$(if $(strip $(clean-files)),echo $(MSG_CLEAN_FILES))
373 $(if $(strip $(clean-files)),$(Q)$(RM) $(clean-files),)
374 @$(if $(strip $(clean-dirs)),echo $(MSG_CLEAN_DIRS))
378 $(Q)$(if $(strip $(clean-dirs)), \
379 $(RMDIR) $(strip $(subst /,\,$(clean-dirs))))
381 $(Q)$(if $(strip $(clean-dirs)), \
382 for directory in $(strip $(clean-dirs)); do \
392 rebuild: clean all