diff options
author | Jani Nikula <jani.nikula@intel.com> | 2017-10-09 17:26:15 +0200 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2017-10-12 19:07:42 +0200 |
commit | e8939222dced668fc5cae02b0b601af069801107 (patch) | |
tree | 96a0758ef47ea1a5f876a87abf28b0849780a656 /Makefile | |
parent | Makefile: enable dochelp run from main make level (diff) | |
download | linux-e8939222dced668fc5cae02b0b601af069801107.tar.xz linux-e8939222dced668fc5cae02b0b601af069801107.zip |
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 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1454,7 +1454,8 @@ $(help-board-dirs): help-%: # Documentation targets # --------------------------------------------------------------------------- -DOC_TARGETS := xmldocs latexdocs pdfdocs htmldocs epubdocs cleandocs linkcheckdocs dochelp +DOC_TARGETS := xmldocs latexdocs pdfdocs htmldocs epubdocs cleandocs \ + linkcheckdocs dochelp refcheckdocs PHONY += $(DOC_TARGETS) $(DOC_TARGETS): scripts_basic FORCE $(Q)$(MAKE) $(build)=Documentation $@ |