linkchecker/doc/Makefile
Chris Mayo c7989eb058 Turn all warnings into errors when building website
Drop code target, sphinx-autogen is not using conf.py, and since Sphinx
4.0 autosummary is generating stub pages by default anyway.

Mock ctypes and linkcheck.__main__: colorama.py imports MS Windows
libraries, autosummary executes __main__.py.
2022-11-02 19:24:35 +00:00

30 lines
600 B
Makefile

MANFILES:=linkchecker.1 linkcheckerrc.5
LOCALES:=en de
all: html man
html: clean
make -C src html
locale:
make -C src locale
man:
make -C src man; \
make -C src -e SPHINXOPTS="-D language='de' -t de" LANGUAGE="de" man
# check all man files for formatting warnings
check:
@for loc in $(LOCALES); do \
for manfile in $(MANFILES); do \
echo "Checking man/$$loc/$$manfile"; \
LC_ALL=en_US.UTF-8 MANWIDTH=80 mandoc -T lint -W error man/$$loc/$$manfile; \
done; \
done
clean:
rm -rf src/_build; \
rm -rf src/code/linkcheck; \
rm -rf html
.PHONY: check clean html locale man