From fb3cbe6481e1a9dff80857ab2aa4812d4211c188 Mon Sep 17 00:00:00 2001 From: Damien Le Moal Date: Tue, 25 Dec 2018 15:50:29 +0900 Subject: [PATCH] Makefile: Fix clean Clean was doing nothing. Fix it to remove all compiled files, leaving only dependency files. Signed-off-by: Damien Le Moal --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ee00d65e..bbd18f64 100644 --- a/Makefile +++ b/Makefile @@ -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"