mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-16 22:10:26 +00:00
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.
30 lines
600 B
Makefile
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
|