]> git.ipfire.org Git - thirdparty/pdns.git/blame - docs/Makefile.am
Merge pull request #7677 from rgacogne/dnsdist-logging-facility
[thirdparty/pdns.git] / docs / Makefile.am
CommitLineData
0e2063c3 1MAIN_MANS = pdns_server.1 \
abca2cdd 2 pdns_control.1 \
fd5076c8 3 pdnsutil.1 \
8803cb05 4 zone2json.1 \
abca2cdd
PL
5 zone2sql.1
6
c18768aa
PD
7MANPAGES_INSTALL = $(MAIN_MANS)
8
ebb76a7f 9MANPAGES_DIST = $(MAIN_MANS) zone2ldap.1
0e2063c3 10
c18768aa
PD
11if LDAP
12MANPAGES_INSTALL += zone2ldap.1
13endif
14
1e0d75de 15MANPAGES_TARGET_TOOLS = calidns.1 \
4eaf1924 16 dnspcap2calidns.1 \
01b03308 17 dnsgram.1 \
e9046dbc 18 dnsreplay.1 \
01b03308 19 dnsscan.1 \
e9046dbc 20 dnsscope.1 \
e9046dbc 21 dnswasher.1 \
8c51de84 22 dumresp.1 \
803902a7 23 ixplore.1 \
8b46f10e 24 nproxy.1 \
01b03308 25 nsec3dig.1 \
a4a74820 26 pdns_notify.1 \
1801fa62
PL
27 saxfr.1 \
28 sdig.1
abca2cdd 29
ca28add0
PL
30MANPAGES_TARGET_IXFRDIST = ixfrdist.1 \
31 ixfrdist.yml.5
32
0e2063c3 33MANPAGES_DIST += $(MANPAGES_TARGET_TOOLS) \
ca28add0 34 $(MANPAGES_TARGET_IXFRDIST) \
0e2063c3
PL
35 dnsbulktest.1 \
36 dnstcpbench.1 \
37 dnspcap2protobuf.1
38
00fd3f0c 39if HAVE_BOOST_GE_148
0e2063c3 40MANPAGES_INSTALL += dnsbulktest.1 \
00fd3f0c
KM
41 dnstcpbench.1
42endif
43
a4a74820
PL
44if HAVE_PROTOBUF
45if HAVE_PROTOC
0e2063c3 46MANPAGES_INSTALL += dnspcap2protobuf.1
a4a74820
PL
47endif
48endif
49
f4efe75c 50if TOOLS
0e2063c3 51MANPAGES_INSTALL += $(MANPAGES_TARGET_TOOLS)
9b078ced 52endif
e9046dbc 53
ca28add0
PL
54if IXFRDIST
55MANPAGES_INSTALL += $(MANPAGES_TARGET_IXFRDIST)
56endif
57
0e2063c3 58man_MANS = $(MANPAGES_INSTALL)
154fd082 59
0e2063c3 60EXTRA_DIST = $(MANPAGES_DIST)
e9046dbc 61
0e2063c3 62if HAVE_VIRTUALENV
f4efe75c 63if !HAVE_MANPAGES
0e2063c3
PL
64$(MANPAGES_DIST): %: manpages/%.rst .venv
65 .venv/bin/python -msphinx -b man . mans $<
66 mv mans/$@ $@
67endif # if !HAVE_MANPAGES
68
69.venv: requirements.txt
70 virtualenv .venv
a8bbd305 71 .venv/bin/pip install -U pip setuptools setuptools-git
0e2063c3
PL
72 .venv/bin/pip install -r requirements.txt
73
cdabd4d0
AT
74.NOTPARALLEL: \
75 all-docs \
76 upload-docs \
77 html-docs \
78 $(MANPAGES_DIST) \
79 latex/PowerDNS-Authoritative.pdf \
80 PowerDNS-Authoritative.pdf \
81 html-docs.tar.bz2
82
0b5bbea8
AT
83clean-local:
84 rm -f latex/PowerDNS-Authoritative.pdf $(MANPAGES_DIST) html-docs.tar.bz2
85 rm -rf mans
86
698d87e2 87html-docs: common/** manpages/** .venv *.rst
0e2063c3 88 .venv/bin/python -msphinx -b html . html-docs
154fd082 89
698d87e2 90latex/PowerDNS-Authoritative.pdf: common/** manpages/** .venv *.rst
0e2063c3
PL
91 .venv/bin/python -msphinx -M latexpdf . .
92
93PowerDNS-Authoritative.pdf: latex/PowerDNS-Authoritative.pdf
94 mv $< $@
95
96html-docs.tar.bz2: html-docs
97 tar cjf $@ $<
98
99all-docs: PowerDNS-Authoritative.pdf html-docs html-docs.tar.bz2
100
101upload-docs: all-docs
102 rsync -crv --delete --no-p --chmod=g=rwX --exclude '*~' ./html-docs/ web1.powerdns.com:/srv/www/doc.powerdns.com/authoritative/
103 rsync -crv --no-p --chmod=g=rwX --exclude '*~' ./html-docs.tar.bz2 web1.powerdns.com:/srv/www/doc.powerdns.com/authoritative/
104 rsync -crv --no-p --chmod=g=rwX --exclude '*~' ./PowerDNS-Authoritative.pdf web1.powerdns.com:/srv/www/doc.powerdns.com/authoritative/
105
106else # if HAVE_VIRTUALENV
e4b7bb73 107$(MANPAGES_DIST):
0e2063c3
PL
108 echo "You need virtualenv to generate the manpages"
109 exit 1
110
111PowerDNS-Authoritative.pdf:
112 echo "You need virtualenv to generate the PDF"
113 exit 1
114
115html-docs:
116 echo "You need virtualenv to generate the HTML docs"
117 exit 1
154fd082
PL
118endif
119
0e2063c3 120