]>
Commit | Line | Data |
---|---|---|
752e4828 JI |
1 | EXTRA_DIST = \ |
2 | conf.py \ | |
3 | _static \ | |
4 | index.rst \ | |
e5fd47dc VJ |
5 | extending/detect/index.rst \ |
6 | extending/decoder/index.rst \ | |
7 | extending/index.rst \ | |
8 | extending/app-layer/index.rst \ | |
9 | extending/app-layer/parser.rst \ | |
10 | extending/capture/index.rst \ | |
11 | extending/output/index.rst \ | |
12 | internals/engines/index.rst \ | |
13 | internals/threading/index.rst \ | |
14 | internals/index.rst \ | |
15 | internals/pipeline/index.rst \ | |
16 | internals/datastructs/index.rst \ | |
17 | codebase/unittests.rst \ | |
18 | codebase/index.rst \ | |
19 | codebase/code-style.rst \ | |
20 | codebase/contributing/code-submission-process.rst \ | |
21 | codebase/contributing/index.rst \ | |
22 | codebase/fuzz-testing.rst | |
752e4828 | 23 | |
7b1699c5 SB |
24 | if HAVE_SPHINXBUILD |
25 | ||
26 | if HAVE_PDFLATEX | |
752e4828 | 27 | EXTRA_DIST += devguide.pdf |
7b1699c5 SB |
28 | endif |
29 | ||
30 | SPHINX_BUILD = sphinx-build -q | |
31 | ||
32 | html: | |
33 | sysconfdir=$(sysconfdir) \ | |
34 | localstatedir=$(localstatedir) \ | |
35 | version=$(PACKAGE_VERSION) \ | |
36 | $(SPHINX_BUILD) -W -b html -d _build/doctrees \ | |
37 | $(top_srcdir)/doc/devguide _build/html | |
38 | ||
39 | _build/latex/Suricata.pdf: | |
40 | sysconfdir=$(sysconfdir) \ | |
41 | localstatedir=$(localstatedir) \ | |
42 | version=$(PACKAGE_VERSION) \ | |
43 | $(SPHINX_BUILD) -W -b latex -d _build/doctrees \ | |
44 | $(top_srcdir)/doc/devguide _build/latex | |
45 | # The Sphinx generated Makefile is GNU Make specific, so just do what | |
46 | # it does here - yes, multiple passes of pdflatex is required. | |
47 | cd _build/latex && pdflatex Suricata.tex | |
48 | cd _build/latex && pdflatex Suricata.tex | |
49 | cd _build/latex && pdflatex Suricata.tex | |
50 | cd _build/latex && makeindex -s python.ist Suricata.idx | |
51 | cd _build/latex && pdflatex Suricata.tex | |
52 | cd _build/latex && pdflatex Suricata.tex | |
53 | ||
54 | devguide.pdf: _build/latex/Suricata.pdf | |
55 | cp _build/latex/Suricata.pdf devguide.pdf | |
56 | ||
57 | pdf: devguide.pdf | |
58 | ||
59 | # Remove build artifacts that aren't tracked by autotools. | |
60 | clean-local: | |
61 | rm -rf $(top_builddir)/doc/devguide/_build | |
62 | rm -f $(top_builddir)/doc/devguide/suricata.1 | |
63 | rm -f $(top_builddir)/doc/devguide/devguide.pdf | |
64 | ||
65 | endif # HAVE_SPHINXBUILD |