summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@wdc.com>2018-12-25 09:50:29 +0300
committerDamien Le Moal <damien.lemoal@wdc.com>2018-12-25 10:01:27 +0300
commitfb3cbe6481e1a9dff80857ab2aa4812d4211c188 (patch)
tree891d731a7fd3ef81e838136dfda2a4a02d2f9823 /Makefile
parentd06dca9bcc470472337571c8ecc2742832713693 (diff)
downloadopensbi-fb3cbe6481e1a9dff80857ab2aa4812d4211c188.tar.xz
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ee00d65..bbd18f6 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"