mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-01 13:58:04 +00:00
Makefile: add a checks rule
The checks rule can be run to perform some checks on the docs. For now it only includes running the check-glossaries script. This rule should only run basic checks or should not prevent the user from building the docs in case of failure. This rule can be used in the future to run additional checks on the documentation. (From yocto-docs rev: 1d9a4a52fa9f2e2eb7f282324f85a46b28128fbf) Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
dc768a3d9d
commit
facbd11e90
|
|
@ -24,9 +24,9 @@ endif
|
|||
help:
|
||||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||
|
||||
.PHONY: all help Makefile clean stylecheck publish epub latexpdf
|
||||
.PHONY: all checks help Makefile clean stylecheck publish epub latexpdf
|
||||
|
||||
publish: Makefile epub latexpdf html singlehtml
|
||||
publish: Makefile checks epub latexpdf html singlehtml
|
||||
rm -rf $(BUILDDIR)/$(DESTDIR)/
|
||||
mkdir -p $(BUILDDIR)/$(DESTDIR)/
|
||||
cp -r $(BUILDDIR)/html/* $(BUILDDIR)/$(DESTDIR)/
|
||||
|
|
@ -52,6 +52,9 @@ PNGs := $(foreach dir, $(IMAGEDIRS), $(patsubst %.svg,%.png,$(wildcard $(SOURCED
|
|||
clean:
|
||||
@rm -rf $(BUILDDIR) $(PNGs) $(PDFs) poky.yaml sphinx-static/switchers.js releases.rst
|
||||
|
||||
checks:
|
||||
$(SOURCEDIR)/tools/check-glossaries --docs-dir $(SOURCEDIR)
|
||||
|
||||
stylecheck:
|
||||
vale sync
|
||||
vale $(VALEOPTS) $(VALEDOCS)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user