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 \
30 MANPAGES_TARGET_IXFRDIST = ixfrdist.1 \
33 MANPAGES_DIST += $(MANPAGES_TARGET_TOOLS) \
34 $(MANPAGES_TARGET_IXFRDIST) \
40 MANPAGES_INSTALL += dnsbulktest.1 \
46 MANPAGES_INSTALL += dnspcap2protobuf.1
51 MANPAGES_INSTALL += $(MANPAGES_TARGET_TOOLS)
55 MANPAGES_INSTALL += $(MANPAGES_TARGET_IXFRDIST)
58 man_MANS = $(MANPAGES_INSTALL)
60 EXTRA_DIST = $(MANPAGES_DIST)
64 $(MANPAGES_DIST): %: mans/.complete manpages/%.rst
65 mv "$(<D)/$@" "$@" && rm -f "$<"
66 endif # if !HAVE_MANPAGES
68 mans/.complete: manpages := $(addprefix manpages/,$(addsuffix .rst,$(MANPAGES_DIST)))
71 .venv/bin/python -msphinx -b man . "$(@D).tmp" $(manpages) && rm -rf "$(@D)" && mv "$(@D).tmp" "$(@D)"
75 .venv: requirements.txt
77 .venv/bin/pip install -U pip setuptools setuptools-git
78 .venv/bin/pip install -r requirements.txt
85 latex/PowerDNS-Authoritative.pdf \
86 PowerDNS-Authoritative.pdf \
90 rm -f latex/PowerDNS-Authoritative.pdf $(MANPAGES_DIST) html-docs.tar.bz2
93 html-docs: common/** manpages/** .venv *.rst
94 .venv/bin/python -msphinx -b html . html-docs
96 latex/PowerDNS-Authoritative.pdf: common/** manpages/** .venv *.rst
97 .venv/bin/python -msphinx -M latexpdf . .
99 PowerDNS-Authoritative.pdf: latex/PowerDNS-Authoritative.pdf
102 html-docs.tar.bz2: html-docs
105 all-docs: PowerDNS-Authoritative.pdf html-docs html-docs.tar.bz2
107 upload-docs: all-docs
108 rsync -crv --delete --no-p --chmod=g=rwX --exclude '*~' ./html-docs/ web1.powerdns.com:/srv/www/doc.powerdns.com/authoritative/
109 rsync -crv --no-p --chmod=g=rwX --exclude '*~' ./html-docs.tar.bz2 web1.powerdns.com:/srv/www/doc.powerdns.com/authoritative/
110 rsync -crv --no-p --chmod=g=rwX --exclude '*~' ./PowerDNS-Authoritative.pdf web1.powerdns.com:/srv/www/doc.powerdns.com/authoritative/
112 else # if HAVE_VIRTUALENV
114 echo "You need virtualenv to generate the manpages"
117 PowerDNS-Authoritative.pdf:
118 echo "You need virtualenv to generate the PDF"
122 echo "You need virtualenv to generate the HTML docs"