summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-05-24 16:10:51 +0900
committerSascha Hauer <s.hauer@pengutronix.de>2019-05-28 10:11:58 +0200
commit4469658fb1219aa30afb760c50d4b9b48da30b88 (patch)
treee04c39da1c96e2295c65dd44f085f38b230a452b /Makefile
parente8535ffcd23541f9292b009a294acf3f91660bbd (diff)
downloadbarebox-4469658fb1219aa30afb760c50d4b9b48da30b88.tar.gz
barebox-4469658fb1219aa30afb760c50d4b9b48da30b88.tar.xz
kbuild: remove unneeded patterns from distclean
Drop the following patterns based on Linux. [1] -size 0 Linux commit f4b129f519f1bbd191dca2bf17d1137edf941fd1 [2] '.*.cmd' Linux commit a03fcb50e816a69acffb13b5e56db75063aeba8a [3] (second) '.*.orig' '.*.rej' Linux commit f78271dfb77353c4d045f9735deebe21839fb2ed Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 29347b6780..1027cecebf 100644
--- a/Makefile
+++ b/Makefile
@@ -1020,9 +1020,8 @@ PHONY += distclean
distclean: mrproper
@find $(srctree) $(RCS_FIND_IGNORE) \
\( -name '*.orig' -o -name '*.rej' -o -name '*~' \
- -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
- -o -name '.*.rej' -o -size 0 \
- -o -name '*%' -o -name '.*.cmd' -o -name 'core' \) \
+ -o -name '*.bak' -o -name '#*#' -o -name '*%' \
+ -o -name 'core' \) \
-type f -print | xargs rm -f