1 MAIN_MANS = pdns_server.1 \
8 MANPAGES_INSTALL = $(MAIN_MANS)
9 MANPAGES_DIST = $(MAIN_MANS)
11 MANPAGES_TARGET_TOOLS = calidns.1 \
25 MANPAGES_DIST += $(MANPAGES_TARGET_TOOLS) \
31 MANPAGES_INSTALL += dnsbulktest.1 \
37 MANPAGES_INSTALL += dnspcap2protobuf.1
42 MANPAGES_INSTALL += $(MANPAGES_TARGET_TOOLS)
45 man_MANS = $(MANPAGES_INSTALL)
47 EXTRA_DIST = $(MANPAGES_DIST)
51 $(MANPAGES_DIST): %: manpages/%.rst .venv
52 .venv/bin/python -msphinx -b man . mans $<
54 endif # if !HAVE_MANPAGES
56 .venv: requirements.txt
58 .venv/bin/pip install -U pip setuptools setuptools-git
59 .venv/bin/pip install -r requirements.txt
61 html-docs: common/** manpages/** .venv *.rst
62 .venv/bin/python -msphinx -b html . html-docs
64 latex/PowerDNS-Authoritative.pdf: common/** manpages/** .venv *.rst
65 .venv/bin/python -msphinx -M latexpdf . .
67 PowerDNS-Authoritative.pdf: latex/PowerDNS-Authoritative.pdf
70 html-docs.tar.bz2: html-docs
73 all-docs: PowerDNS-Authoritative.pdf html-docs html-docs.tar.bz2
76 rsync -crv --delete --no-p --chmod=g=rwX --exclude '*~' ./html-docs/ web1.powerdns.com:/srv/www/doc.powerdns.com/authoritative/
77 rsync -crv --no-p --chmod=g=rwX --exclude '*~' ./html-docs.tar.bz2 web1.powerdns.com:/srv/www/doc.powerdns.com/authoritative/
78 rsync -crv --no-p --chmod=g=rwX --exclude '*~' ./PowerDNS-Authoritative.pdf web1.powerdns.com:/srv/www/doc.powerdns.com/authoritative/
80 else # if HAVE_VIRTUALENV
82 echo "You need virtualenv to generate the manpages"
85 PowerDNS-Authoritative.pdf:
86 echo "You need virtualenv to generate the PDF"
90 echo "You need virtualenv to generate the HTML docs"