Makefile: Fix clean

Clean was doing nothing. Fix it to remove all compiled files, leaving
only dependency files.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
This commit is contained in:
Damien Le Moal
2018-12-25 15:50:29 +09:00
parent d06dca9bcc
commit fb3cbe6481

View File

@@ -280,7 +280,7 @@ clean:
ifeq ($(build_dir),$(CURDIR)/build)
$(V)mkdir -p $(build_dir)
$(if $(V), @echo " CLEAN $(build_dir)")
$(V)find $(build_dir) -maxdepth 1 -type f -exec rm -rf {} +
$(V)find $(build_dir) -regex ".*\.\(o\|a\|elf\|bin\)" -type f -exec rm -rf {} +
endif
# Rule for "make distclean"