summaryrefslogtreecommitdiffstats
path: root/Documentation/Makefile
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-06-04 14:26:27 +0200
committerJonathan Corbet <corbet@lwn.net>2019-06-07 19:33:16 +0200
commitb1663d7e3a7961fc45262fd68a89253f2803036c (patch)
treee7e424e2d6bf9b53d846db99d421c19ffb1042ec /Documentation/Makefile
parentKVM: arm/arm64: Always capitalize ITS (diff)
downloadlinux-b1663d7e3a7961fc45262fd68a89253f2803036c.tar.xz
linux-b1663d7e3a7961fc45262fd68a89253f2803036c.zip
docs: Kbuild/Makefile: allow check for missing docs at build time
While this doesn't make sense for production Kernels, in order to avoid regressions when documents are touched, let's add a check target at the make file. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/Makefile')
-rw-r--r--Documentation/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile
index 2df0789f90b7..e145e4db508b 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -4,6 +4,11 @@
subdir-y := devicetree/bindings/
+# Check for broken documentation file references
+ifeq ($(CONFIG_WARN_MISSING_DOCUMENTS),y)
+$(shell $(srctree)/scripts/documentation-file-ref-check --warn)
+endif
+
# You can set these variables from the command line.
SPHINXBUILD = sphinx-build
SPHINXOPTS =