refcheckdocs:
$(Q)cd $(srctree);scripts/documentation-file-ref-check
+# no-ops for the Sphinx toolchain
+sgmldocs:
+ @:
+psdocs:
+ @:
+mandocs:
+ @:
+installmandocs:
+ @:
+
cleandocs:
$(Q)rm -rf $(BUILDDIR)
$(Q)$(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=Documentation/media clean
这些文档都可以通过运行以下命令从内核代码中生成为PDF或HTML文档::
make pdfdocs
+ make psdocs
make htmldocs
+ make mandocs
ReST格式的文档会生成在 Documentation/output. 目录中。
它们也可以用下列命令生成 LaTeX 和 ePub 格式文档::
# Documentation targets
# ---------------------------------------------------------------------------
-DOC_TARGETS := xmldocs latexdocs pdfdocs htmldocs epubdocs cleandocs \
- linkcheckdocs dochelp refcheckdocs
+
+DOC_TARGETS := xmldocs sgmldocs psdocs latexdocs pdfdocs htmldocs mandocs installmandocs epubdocs cleandocs linkcheckdocs dochelp refcheckdocs
+
PHONY += $(DOC_TARGETS)
$(DOC_TARGETS):
$(Q)$(MAKE) $(build)=Documentation $@