author: Masahiro Yamada <yamada.masahiro@socionext.com> 2019-08-25 10:31:27 +0900
committer: Masahiro Yamada <yamada.masahiro@socionext.com> 2019-08-29 23:54:29 +0900
commit: 1634f2bfdb846ed0a8b73131a9dff7c420fb3fe1
parent: 36de077b20d05321466f8eaba0ae01b9b18ad93c
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 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)/*)))