aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/Makefile
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2017-10-09 11:26:15 -0400
committerJonathan Corbet <corbet@lwn.net>2017-10-12 13:07:42 -0400
commite8939222dced668fc5cae02b0b601af069801107 (patch)
tree96a0758ef47ea1a5f876a87abf28b0849780a656 /Documentation/Makefile
parent8d73c512e648bee83b912733876b9b4071353265 (diff)
Documentation: add script and build target to check for broken file references
Add a simple script and build target to do a treewide grep for references to files under Documentation, and report the non-existing file in stderr. It tries to take into account punctuation not part of the filename, and wildcards, but there are bound to be false positives too. Mostly seems accurate though. We've moved files around enough to make having this worthwhile. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/Makefile')
-rw-r--r--Documentation/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile
index 5e65fa5c6ab7..2ca77ad0f238 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -97,6 +97,9 @@ endif # HAVE_SPHINX
97# The following targets are independent of HAVE_SPHINX, and the rules should 97# The following targets are independent of HAVE_SPHINX, and the rules should
98# work or silently pass without Sphinx. 98# work or silently pass without Sphinx.
99 99
100refcheckdocs:
101 $(Q)cd $(srctree);scripts/documentation-file-ref-check
102
100cleandocs: 103cleandocs:
101 $(Q)rm -rf $(BUILDDIR) 104 $(Q)rm -rf $(BUILDDIR)
102 $(Q)$(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=Documentation/media clean 105 $(Q)$(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=Documentation/media clean
@@ -109,6 +112,7 @@ dochelp:
109 @echo ' epubdocs - EPUB' 112 @echo ' epubdocs - EPUB'
110 @echo ' xmldocs - XML' 113 @echo ' xmldocs - XML'
111 @echo ' linkcheckdocs - check for broken external links (will connect to external hosts)' 114 @echo ' linkcheckdocs - check for broken external links (will connect to external hosts)'
115 @echo ' refcheckdocs - check for references to non-existing files under Documentation'
112 @echo ' cleandocs - clean all generated files' 116 @echo ' cleandocs - clean all generated files'
113 @echo 117 @echo
114 @echo ' make SPHINXDIRS="s1 s2" [target] Generate only docs of folder s1, s2' 118 @echo ' make SPHINXDIRS="s1 s2" [target] Generate only docs of folder s1, s2'