diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-08-25 03:31:27 +0200 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-08-29 16:54:29 +0200 |
commit | 1634f2bfdb846ed0a8b73131a9dff7c420fb3fe1 (patch) | |
tree | e11cf667281d9d4cb4d1f0f115a3ccef077781ed /usr | |
parent | kbuild: check clean srctree even earlier (diff) | |
download | linux-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/Makefile | 4 |
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)/*))) |