docs: Kbuild/Makefile: allow check for missing docs at build time
[linux-2.6-block.git] / Documentation / Makefile
index 2df0789f90b7ad116e9ec0aef8fc8f703b3afc86..e145e4db508bc6a45ed598f0cb3564893d0bc026 100644 (file)
@@ -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    =