summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@gmail.com>2008-12-16 12:33:43 +0100
committerSam Ravnborg <sam@ravnborg.org>2008-12-18 20:18:04 +0100
commit179efcb47d5a5dd34a45be3f0eca4bffa717c6b4 (patch)
tree2ec42d6576ec8f73e8911bf44eac4570c6a7afb5 /Makefile
parenta6ba0cb35da64d658b7a01ea4597416f8522d5e1 (diff)
kbuild: add headerdep used to detect inclusion cycles in header files
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 95160e5c70e8..e1c5ae8a8162 100644
--- a/Makefile
+++ b/Makefile
@@ -1026,6 +1026,10 @@ include/linux/version.h: $(srctree)/Makefile FORCE
include/linux/utsrelease.h: include/config/kernel.release FORCE
$(call filechk,utsrelease.h)
+PHONY += headerdep
+headerdep:
+ $(Q)find include/ -name '*.h' | xargs --max-args 1 scripts/headerdep.pl
+
# ---------------------------------------------------------------------------
PHONY += depend dep
@@ -1274,7 +1278,8 @@ help:
@echo ' versioncheck - Sanity check on version.h usage'
@echo ' includecheck - Check for duplicate included header files'
@echo ' export_report - List the usages of all exported symbols'
- @echo ' headers_check - Sanity check on exported headers'; \
+ @echo ' headers_check - Sanity check on exported headers'
+ @echo ' headerdep - Detect inclusion cycles in headers'; \
echo ''
@echo 'Kernel packaging:'
@$(MAKE) $(build)=$(package-dir) help