summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-08-25 03:31:27 +0200
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-08-29 16:54:29 +0200
commit1634f2bfdb846ed0a8b73131a9dff7c420fb3fe1 (patch)
treee11cf667281d9d4cb4d1f0f115a3ccef077781ed /usr
parentkbuild: check clean srctree even earlier (diff)
downloadlinux-1634f2bfdb846ed0a8b73131a9dff7c420fb3fe1.tar.xz
linux-1634f2bfdb846ed0a8b73131a9dff7c420fb3fe1.zip
kbuild: remove clean-dirs syntax
The only the difference between clean-files and clean-dirs is the -r option passed to the 'rm' command. You can always pass -r, and then remove the clean-dirs syntax. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'usr')
-rw-r--r--usr/include/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/include/Makefile b/usr/include/Makefile
index 1fb6abe29b2f..05c71ef42f51 100644
--- a/usr/include/Makefile
+++ b/usr/include/Makefile
@@ -115,6 +115,4 @@ header-test-y += $(filter-out $(header-test-), \
$(patsubst $(obj)/%,%, $(wildcard \
$(addprefix $(obj)/, *.h */*.h */*/*.h */*/*/*.h))))
-# For GNU Make <= 4.2.1, $(wildcard $(obj)/*/) matches to not only directories
-# but also regular files. Use $(filter %/, ...) just in case.
-clean-dirs += $(patsubst $(obj)/%/,%,$(filter %/, $(wildcard $(obj)/*/)))
+clean-files += $(filter-out Makefile, $(notdir $(wildcard $(obj)/*)))