1 MAIN_MANS = pdns_server.1 \
7 MANPAGES_INSTALL = $(MAIN_MANS)
9 MANPAGES_DIST = $(MAIN_MANS) zone2ldap.1
12 MANPAGES_INSTALL += zone2ldap.1
15 MANPAGES_TARGET_TOOLS = calidns.1 \
31 MANPAGES_DIST += $(MANPAGES_TARGET_TOOLS) \
37 MANPAGES_INSTALL += dnsbulktest.1 \
43 MANPAGES_INSTALL += dnspcap2protobuf.1
48 MANPAGES_INSTALL += $(MANPAGES_TARGET_TOOLS)
51 man_MANS = $(MANPAGES_INSTALL)
53 EXTRA_DIST = $(MANPAGES_DIST)
57 $(MANPAGES_DIST): %: manpages/%.rst .venv
58 .venv/bin/python -msphinx -b man . mans $<
60 endif # if !HAVE_MANPAGES
62 .venv: requirements.txt
64 .venv/bin/pip install -U pip setuptools setuptools-git
65 .venv/bin/pip install -r requirements.txt
72 latex/PowerDNS-Authoritative.pdf \
73 PowerDNS-Authoritative.pdf \
77 rm -f latex/PowerDNS-Authoritative.pdf $(MANPAGES_DIST) html-docs.tar.bz2
80 html-docs: common/** manpages/** .venv *.rst
81 .venv/bin/python -msphinx -b html . html-docs
83 latex/PowerDNS-Authoritative.pdf: common/** manpages/** .venv *.rst
84 .venv/bin/python -msphinx -M latexpdf . .
86 PowerDNS-Authoritative.pdf: latex/PowerDNS-Authoritative.pdf
89 html-docs.tar.bz2: html-docs
92 all-docs: PowerDNS-Authoritative.pdf html-docs html-docs.tar.bz2
95 rsync -crv --delete --no-p --chmod=g=rwX --exclude '*~' ./html-docs/ web1.powerdns.com:/srv/www/doc.powerdns.com/authoritative/
96 rsync -crv --no-p --chmod=g=rwX --exclude '*~' ./html-docs.tar.bz2 web1.powerdns.com:/srv/www/doc.powerdns.com/authoritative/
97 rsync -crv --no-p --chmod=g=rwX --exclude '*~' ./PowerDNS-Authoritative.pdf web1.powerdns.com:/srv/www/doc.powerdns.com/authoritative/
99 else # if HAVE_VIRTUALENV
101 echo "You need virtualenv to generate the manpages"
104 PowerDNS-Authoritative.pdf:
105 echo "You need virtualenv to generate the PDF"
109 echo "You need virtualenv to generate the HTML docs"