Commit 49af8c7e authored by Daniel Salzman's avatar Daniel Salzman

gitlab-ci: build documentation for all modules

parent 829a66ff
......@@ -134,12 +134,12 @@ test:freebsd:amd64:
build:documentation:
<<: *debian_stretch
stage: build
dependencies:
- configure:debian:stretch:amd64
only:
- tags
- triggers
script:
- autoreconf -fi
- ./configure --with-module-dnstap --with-module-rosedb
- make -C doc html singlehtml pdf
artifacts:
paths:
......
......@@ -10,17 +10,17 @@ AC_DEFUN([KNOT_MODULE],
[module=$2]
)
doc_modules="${doc_modules}.. include:: ../src/knot/modules/$1/$1.rst\n"
STATIC_MODULE_$1=no
SHARED_MODULE_$1=no
AS_CASE([$module],
[yes], [STATIC_MODULE_$1=yes
static_modules="${static_modules}$1 "
static_modules_declars="${static_modules_declars}extern const knotd_mod_api_t knotd_mod_api_$1;\n"
static_modules_init="${static_modules_init}\\\\\n\t{ &knotd_mod_api_$1 },"
doc_modules="${doc_modules}.. include:: ../src/knot/modules/$1/$1.rst\n"],
static_modules_init="${static_modules_init}\\\\\n\t{ &knotd_mod_api_$1 },"],
[shared], [SHARED_MODULE_$1=yes
shared_modules="${shared_modules}$1 "
doc_modules="${doc_modules}.. include:: ../src/knot/modules/$1/$1.rst\n"
AS_IF([test "$3" = "non-shareable"],
[AC_MSG_ERROR([Module $1 cannot be shared])])],
[no], [],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment