Skip to content

Commit f78f444

Browse files
sattavictorjulien
authored andcommitted
doc: build all manpages
1 parent dfe5785 commit f78f444

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

doc/userguide/Makefile.am

+8-7
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ EXTRA_DIST = \
3131
what-is-suricata.rst
3232

3333
if HAVE_SURICATA_MAN
34-
dist_man1_MANS = suricata.1
34+
dist_man1_MANS = suricata.1 suricatasc.1 suricatactl.1 suricatactl-filestore.1
3535
endif
3636

3737
if HAVE_SPHINXBUILD
38-
dist_man1_MANS = suricata.1
38+
dist_man1_MANS = suricata.1 suricatasc.1 suricatactl.1 suricatactl-filestore.1
3939

4040
if HAVE_PDFLATEX
4141
EXTRA_DIST += userguide.pdf
@@ -70,22 +70,23 @@ userguide.pdf: _build/latex/Suricata.pdf
7070

7171
pdf: userguide.pdf
7272

73-
_build/man/suricata.1:
73+
_build/man: manpages/suricata.rst manpages/suricatasc.rst manpages/suricatactl.rst manpages/suricatactl-filestore.rst
7474
sysconfdir=$(sysconfdir) \
7575
localstatedir=$(localstatedir) \
7676
version=$(PACKAGE_VERSION) \
7777
$(SPHINX_BUILD) -W -b man -d _build/doctrees \
7878
$(top_srcdir)/doc/userguide _build/man
79+
touch _build/man
7980

80-
suricata.1: _build/man/suricata.1
81-
cp _build/man/suricata.1 suricata.1
81+
$(dist_man1_MANS): _build/man
82+
cp _build/man/$@ .
8283

83-
man: _build/man/suricata.1
84+
man: $(dist_man1_MANS)
8485

8586
# Remove build artifacts that aren't tracked by autotools.
8687
clean-local:
8788
rm -rf $(top_builddir)/doc/userguide/_build
88-
rm -f $(top_builddir)/doc/userguide/suricata.1
89+
rm -f $(top_builddir)/doc/userguide/suricata*.1
8990
rm -f $(top_builddir)/doc/userguide/userguide.pdf
9091

9192
endif # HAVE_SPHINXBUILD

0 commit comments

Comments
 (0)