linkchecker/doc/Makefile
Chris Mayo d1834f0619 Generate html documentation with Sphinx
Create code documentation:
make -C doc code

Create html:
make -C doc html
2020-08-15 17:02:38 +01:00

31 lines
651 B
Makefile

MANFILES:=linkchecker.1 linkcheckerrc.5
LOCALES:=en de
all:
code: clean
PYTHONPATH=.. sphinx-autogen src/code/index.rst
html:
make -C src html
po4a:
po4a --localized-charset=UTF-8 po4a.conf
# check all makefiles for formatting warnings
check:
@t=$(shell tempfile); \
for loc in $(LOCALES); do \
for manfile in $(MANFILES); do \
echo "Checking $$loc/$$manfile"; \
LC_ALL=en_US.UTF-8 MANWIDTH=80 man --warnings -E UTF-8 -l $$loc/$$manfile > /dev/null 2>$$t ; \
if [ -s $$t ]; then cat $$t; exit 1; fi; \
done; \
done
clean:
rm -rf src/_build; \
rm -rf src/code/linkcheck; \
rm -rf html
.PHONY: po4a check clean html