]> git.ipfire.org Git - people/ms/suricata.git/blame - doc/devguide/Makefile.am
devguide: include sources in EXTRA_DIST
[people/ms/suricata.git] / doc / devguide / Makefile.am
CommitLineData
752e4828
JI
1EXTRA_DIST = \
2 conf.py \
3 _static \
4 index.rst \
5 code-submission-process.rst \
6 code-style.rst \
7 app-layer
8
7b1699c5
SB
9if HAVE_SPHINXBUILD
10
11if HAVE_PDFLATEX
752e4828 12EXTRA_DIST += devguide.pdf
7b1699c5
SB
13endif
14
15SPHINX_BUILD = sphinx-build -q
16
17html:
18 sysconfdir=$(sysconfdir) \
19 localstatedir=$(localstatedir) \
20 version=$(PACKAGE_VERSION) \
21 $(SPHINX_BUILD) -W -b html -d _build/doctrees \
22 $(top_srcdir)/doc/devguide _build/html
23
24_build/latex/Suricata.pdf:
25 sysconfdir=$(sysconfdir) \
26 localstatedir=$(localstatedir) \
27 version=$(PACKAGE_VERSION) \
28 $(SPHINX_BUILD) -W -b latex -d _build/doctrees \
29 $(top_srcdir)/doc/devguide _build/latex
30# The Sphinx generated Makefile is GNU Make specific, so just do what
31# it does here - yes, multiple passes of pdflatex is required.
32 cd _build/latex && pdflatex Suricata.tex
33 cd _build/latex && pdflatex Suricata.tex
34 cd _build/latex && pdflatex Suricata.tex
35 cd _build/latex && makeindex -s python.ist Suricata.idx
36 cd _build/latex && pdflatex Suricata.tex
37 cd _build/latex && pdflatex Suricata.tex
38
39devguide.pdf: _build/latex/Suricata.pdf
40 cp _build/latex/Suricata.pdf devguide.pdf
41
42pdf: devguide.pdf
43
44# Remove build artifacts that aren't tracked by autotools.
45clean-local:
46 rm -rf $(top_builddir)/doc/devguide/_build
47 rm -f $(top_builddir)/doc/devguide/suricata.1
48 rm -f $(top_builddir)/doc/devguide/devguide.pdf
49
50endif # HAVE_SPHINXBUILD