]> git.proxmox.com Git - mirror_ovs.git/blame - Documentation/automake.mk
Documentation: document ovs-dpdk flow offload
[mirror_ovs.git] / Documentation / automake.mk
CommitLineData
e9f521b3 1DOC_SOURCE = \
c431227e 2 Documentation/group-selection-method-property.txt \
daf5079e 3 Documentation/_static/logo.png \
2eaf6a08 4 Documentation/_static/overview.png \
daf5079e
SF
5 Documentation/conf.py \
6 Documentation/index.rst \
11820a1f
SF
7 Documentation/contents.rst \
8 Documentation/intro/index.rst \
2eaf6a08 9 Documentation/intro/what-is-ovs.rst \
3c8a3b31 10 Documentation/intro/why-ovs.rst \
11820a1f 11 Documentation/intro/install/index.rst \
795752a3
SF
12 Documentation/intro/install/bash-completion.rst \
13 Documentation/intro/install/debian.rst \
73c76b44 14 Documentation/intro/install/documentation.rst \
4ae3db4a 15 Documentation/intro/install/distributions.rst \
795752a3
SF
16 Documentation/intro/install/dpdk.rst \
17 Documentation/intro/install/fedora.rst \
18 Documentation/intro/install/general.rst \
19 Documentation/intro/install/netbsd.rst \
ab979fd2 20 Documentation/intro/install/ovn-upgrades.rst \
795752a3
SF
21 Documentation/intro/install/rhel.rst \
22 Documentation/intro/install/userspace.rst \
23 Documentation/intro/install/windows.rst \
24 Documentation/intro/install/xenserver.rst \
11820a1f 25 Documentation/tutorials/index.rst \
98dc8dee 26 Documentation/tutorials/faucet.rst \
e12569bb 27 Documentation/tutorials/ovs-advanced.rst \
a16189ae 28 Documentation/tutorials/ovn-openstack.rst \
46a2dc58 29 Documentation/tutorials/ovn-sandbox.rst \
c9ccdec7 30 Documentation/tutorials/ovs-conntrack.rst \
11820a1f 31 Documentation/topics/index.rst \
7c9afefd 32 Documentation/topics/bonding.rst \
e90bc056 33 Documentation/topics/idl-compound-indexes.rst \
7c9afefd
SF
34 Documentation/topics/datapath.rst \
35 Documentation/topics/design.rst \
e69e4f5b 36 Documentation/topics/dpdk/index.rst \
7b743caf 37 Documentation/topics/dpdk/bridge.rst \
a790e75f 38 Documentation/topics/dpdk/jumbo-frames.rst \
099a3547 39 Documentation/topics/dpdk/pdump.rst \
6477dbb9 40 Documentation/topics/dpdk/phy.rst \
31d0dae2 41 Documentation/topics/dpdk/pmd.rst \
6fe32f11 42 Documentation/topics/dpdk/qos.rst \
144d1cee 43 Documentation/topics/dpdk/ring.rst \
b20eabc3 44 Documentation/topics/dpdk/vdev.rst \
e69e4f5b 45 Documentation/topics/dpdk/vhost-user.rst \
e69e4f5b 46 Documentation/topics/testing.rst \
7c9afefd
SF
47 Documentation/topics/high-availability.rst \
48 Documentation/topics/integration.rst \
f150a8ba 49 Documentation/topics/language-bindings.rst \
60405863 50 Documentation/topics/networking-namespaces.rst \
7c9afefd 51 Documentation/topics/openflow.rst \
9e848936 52 Documentation/topics/ovn-news-2.8.rst \
7c9afefd
SF
53 Documentation/topics/ovsdb-replication.rst \
54 Documentation/topics/porting.rst \
431e90b7 55 Documentation/topics/role-based-access-control.rst \
73f5354b 56 Documentation/topics/tracing.rst \
7c9afefd 57 Documentation/topics/windows.rst \
11820a1f 58 Documentation/howto/index.rst \
795752a3 59 Documentation/howto/docker.rst \
e69e4f5b 60 Documentation/howto/dpdk.rst \
2c71d7d8 61 Documentation/howto/firewalld.rst \
795752a3
SF
62 Documentation/howto/kvm.rst \
63 Documentation/howto/libvirt.rst \
64 Documentation/howto/selinux.rst \
65 Documentation/howto/ssl.rst \
43f317ff
SF
66 Documentation/howto/lisp.rst \
67 Documentation/howto/openstack-containers.rst \
b0bef8d1
SF
68 Documentation/howto/qos.png \
69 Documentation/howto/qos.rst \
198c5d3d
SF
70 Documentation/howto/sflow.png \
71 Documentation/howto/sflow.rst \
4643d687
SF
72 Documentation/howto/tunneling.png \
73 Documentation/howto/tunneling.rst \
b438493e 74 Documentation/howto/userspace-tunneling.rst \
e37319ea
SF
75 Documentation/howto/vlan.png \
76 Documentation/howto/vlan.rst \
43f317ff 77 Documentation/howto/vtep.rst \
11820a1f
SF
78 Documentation/ref/index.rst \
79 Documentation/faq/index.rst \
11e02906
SF
80 Documentation/faq/configuration.rst \
81 Documentation/faq/contributing.rst \
82 Documentation/faq/design.rst \
83 Documentation/faq/general.rst \
84 Documentation/faq/issues.rst \
85 Documentation/faq/openflow.rst \
81ebfc5c 86 Documentation/faq/ovn.rst \
11e02906
SF
87 Documentation/faq/qos.rst \
88 Documentation/faq/releases.rst \
89 Documentation/faq/terminology.rst \
90 Documentation/faq/vlan.rst \
91 Documentation/faq/vxlan.rst \
d0e53b15
SF
92 Documentation/internals/index.rst \
93 Documentation/internals/authors.rst \
94 Documentation/internals/bugs.rst \
45c2f69a 95 Documentation/internals/charter.rst \
43e9c263 96 Documentation/internals/committer-emeritus-status.rst \
d0e53b15
SF
97 Documentation/internals/committer-grant-revocation.rst \
98 Documentation/internals/committer-responsibilities.rst \
1e6567d4 99 Documentation/internals/documentation.rst \
d0e53b15
SF
100 Documentation/internals/mailing-lists.rst \
101 Documentation/internals/maintainers.rst \
3c2604f7 102 Documentation/internals/patchwork.rst \
d0e53b15
SF
103 Documentation/internals/release-process.rst \
104 Documentation/internals/security.rst \
105 Documentation/internals/contributing/index.rst \
1102cc39 106 Documentation/internals/contributing/backporting-patches.rst \
d0e53b15
SF
107 Documentation/internals/contributing/coding-style.rst \
108 Documentation/internals/contributing/coding-style-windows.rst \
109 Documentation/internals/contributing/documentation-style.rst \
cb991590 110 Documentation/internals/contributing/libopenvswitch-abi.rst \
73c76b44 111 Documentation/internals/contributing/submitting-patches.rst \
fd0837a7 112 Documentation/requirements.txt \
16ee8726 113 $(addprefix Documentation/ref/,$(RST_MANPAGES) $(RST_MANPAGES_NOINST))
b9b3b9ce 114FLAKE8_PYFILES += Documentation/conf.py
e9f521b3
RB
115EXTRA_DIST += $(DOC_SOURCE)
116
daf5079e
SF
117# You can set these variables from the command line.
118SPHINXOPTS =
119SPHINXBUILD = sphinx-build
120SPHINXSRCDIR = $(srcdir)/Documentation
c431227e 121SPHINXBUILDDIR = $(builddir)/Documentation/_build
daf5079e
SF
122
123# Internal variables.
70cb24de 124ALLSPHINXOPTS = -W -n -d $(SPHINXBUILDDIR)/doctrees $(SPHINXOPTS) $(SPHINXSRCDIR)
daf5079e 125
099cf485
SF
126sphinx_verbose = $(sphinx_verbose_@AM_V@)
127sphinx_verbose_ = $(sphinx_verbose_@AM_DEFAULT_V@)
128sphinx_verbose_0 = -q
d84bdc82
SF
129
130if HAVE_SPHINX
fd0837a7 131docs-check: $(DOC_SOURCE)
e9f521b3 132 $(AM_V_GEN)$(SPHINXBUILD) $(sphinx_verbose) -b html $(ALLSPHINXOPTS) $(SPHINXBUILDDIR)/html && touch $@
fd0837a7
SF
133 $(AM_V_GEN)$(SPHINXBUILD) $(sphinx_verbose) -b man $(ALLSPHINXOPTS) $(SPHINXBUILDDIR)/man && touch $@
134ALL_LOCAL += docs-check
135CLEANFILES += docs-check
099cf485
SF
136
137check-docs:
138 $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(SPHINXBUILDDIR)/linkcheck
f93f0e4a
SF
139
140clean-docs:
fd0837a7 141 rm -rf $(SPHINXBUILDDIR)
f654d6e4 142 rm -f docs-check
f93f0e4a 143CLEAN_LOCAL += clean-docs
d84bdc82 144endif
d84bdc82 145.PHONY: check-docs
f93f0e4a 146.PHONY: clean-docs
fd0837a7
SF
147\f
148# Installing manpages based on rST.
149#
150# The docs-check target converts the rST files listed in RST_MANPAGES
151# into nroff manpages in Documentation/_build/man. The easiest way to
152# get these installed by "make install" is to write our own helper
153# rules.
154
155# rST formatted manpages under Documentation/ref.
156RST_MANPAGES = \
3591d8c7 157 ovs-test.8.rst \
12b84d50
BP
158 ovs-vlan-test.8.rst \
159 ovsdb-server.7.rst \
160 ovsdb.5.rst \
16ee8726
BP
161 ovsdb.7.rst
162
163# rST formatted manpages that we don't want to install because they
164# document stuff that only works with a build tree, not with an
165# installed OVS.
166RST_MANPAGES_NOINST = ovs-sim.1.rst
fd0837a7
SF
167
168# The GNU standards say that these variables should control
169# installation directories for manpages in each section. Automake
170# will define them for us only if it sees that a manpage in the
171# appropriate section is to be installed through its built-in feature.
172# Since we're working independently, for best safety, we need to
173# define them ourselves.
174man1dir = $(mandir)/man1
175man2dir = $(mandir)/man2
176man3dir = $(mandir)/man3
177man4dir = $(mandir)/man4
178man5dir = $(mandir)/man5
179man6dir = $(mandir)/man6
180man7dir = $(mandir)/man7
181man8dir = $(mandir)/man8
182man9dir = $(mandir)/man9
183
184# Set a shell variable for each manpage directory.
185set_mandirs = \
186 man1dir='$(man1dir)' \
187 man2dir='$(man2dir)' \
188 man3dir='$(man3dir)' \
189 man4dir='$(man4dir)' \
190 man5dir='$(man5dir)' \
191 man6dir='$(man6dir)' \
192 man7dir='$(man7dir)' \
193 man8dir='$(man8dir)' \
194 man9dir='$(man9dir)'
195
196# Given an $rst of "ovs-vlan-test.8.rst", sets $stem to
197# "ovs-vlan-test", $section to "8", and $mandir to $man8dir.
198extract_stem_and_section = \
199 stem=`echo "$$rst" | sed -n 's/^\(.*\)\.\([0-9]\).rst$$/\1/p'`; \
200 section=`echo "$$rst" | sed -n 's/^\(.*\)\.\([0-9]\).rst$$/\2/p'`; \
201 test -n "$$section" || { echo "$$rst: cannot infer manpage section from filename" 2>&1; continue; }; \
202 eval "mandir=\$$man$${section}dir"; \
203 test -n "$$mandir" || { echo "unknown directory for manpage section $$section"; continue; }
204
fd0837a7 205INSTALL_DATA_LOCAL += install-man-rst
9db5e1ef 206if HAVE_SPHINX
fd0837a7
SF
207install-man-rst: docs-check
208 @$(set_mandirs); \
16ee8726 209 for rst in $(RST_MANPAGES) $(EXTRA_RST_MANPAGES); do \
fd0837a7
SF
210 $(extract_stem_and_section); \
211 echo " $(MKDIR_P) '$(DESTDIR)'\"$$mandir\""; \
212 $(MKDIR_P) '$(DESTDIR)'"$$mandir"; \
213 echo " $(INSTALL_DATA) $(SPHINXBUILDDIR)/man/$$stem.$$section '$(DESTDIR)'\"$$mandir/$$stem.$$section\""; \
214 $(INSTALL_DATA) $(SPHINXBUILDDIR)/man/$$stem.$$section '$(DESTDIR)'"$$mandir/$$stem.$$section"; \
215 done
9db5e1ef
BP
216else
217install-man-rst:
218 @:
fd0837a7
SF
219endif
220
221UNINSTALL_LOCAL += uninstall-man-rst
222uninstall-man-rst:
223 @$(set_mandirs); \
224 for rst in $(RST_MANPAGES); do \
225 $(extract_stem_and_section); \
226 echo "rm -f '$(DESTDIR)'\"$$mandir/$$stem.$$section\""; \
227 rm -f '$(DESTDIR)'"$$mandir/$$stem.$$section"; \
228 done