doc: hook sphinx into build

pull/2302/head
Jason Ish 10 years ago committed by Victor Julien
parent 5e76a54714
commit 6eedd0068b

@ -1881,6 +1881,13 @@
AC_DEFINE([CLS],[64],[L1 cache line size])
fi
# sphinx for documentation
AC_PATH_PROG(HAVE_SPHINXBUILD, sphinx-build, "no")
if test "$HAVE_SPHINXBUILD" = "no"; then
enable_sphinxbuild=no
fi
AM_CONDITIONAL([HAVE_SPHINXBUILD], [test "x$enable_sphinxbuild" != "xno"])
# get revision
if test -f ./revision; then
REVISION=`cat ./revision`
@ -1960,7 +1967,7 @@ AC_SUBST(CONFIGURE_PREFIX)
AC_SUBST(CONFIGURE_SYSCONDIR)
AC_SUBST(CONFIGURE_LOCALSTATEDIR)
AC_OUTPUT(Makefile src/Makefile qa/Makefile qa/coccinelle/Makefile rules/Makefile doc/Makefile contrib/Makefile contrib/file_processor/Makefile contrib/file_processor/Action/Makefile contrib/file_processor/Processor/Makefile contrib/tile_pcie_logd/Makefile suricata.yaml scripts/Makefile scripts/suricatasc/Makefile scripts/suricatasc/suricatasc)
AC_OUTPUT(Makefile src/Makefile qa/Makefile qa/coccinelle/Makefile rules/Makefile doc/Makefile doc/userguide/Makefile contrib/Makefile contrib/file_processor/Makefile contrib/file_processor/Action/Makefile contrib/file_processor/Processor/Makefile contrib/tile_pcie_logd/Makefile suricata.yaml scripts/Makefile scripts/suricatasc/Makefile scripts/suricatasc/suricatasc)
SURICATA_BUILD_CONF="Suricata Configuration:
AF_PACKET support: ${enable_af_packet}

@ -1,3 +1,5 @@
SUBDIRS = userguide
EXTRA_DIST = \
AUTHORS \
GITGUIDE \

@ -0,0 +1 @@
_build

@ -0,0 +1,12 @@
if HAVE_SPHINXBUILD
man1_MANS = _build/man/suricata.1
html:
$(MAKE) -f Makefile.sphinx html
_build/man/suricata.1:
$(MAKE) -f Makefile.sphinx man
clean-local:
rm -rf $(top_builddir)/doc/userguide/_build
endif
Loading…
Cancel
Save