@@ -31,6 +31,7 @@ usage() {
3131 echo " coverage build coverage report"
3232 echo " distro build libnvme and nvme-cli separately"
3333 echo " docs build all documentation"
34+ echo " man_docs build man documentation only"
3435 echo " html_docs build html documentation only"
3536 echo " rst_docs build rst documentation only"
3637 echo " static build a static binary"
@@ -153,18 +154,22 @@ config_meson_coverage() {
153154
154155config_meson_docs () {
155156 CC=" ${CC} " " ${MESON} " setup \
156- -Dnvme=disabled \
157- -Dlibnvme=disabled \
158157 -Ddocs=all \
159158 -Ddocs-build=true \
160159 --prefix=/tmp/usr \
161160 " ${BUILDDIR} "
162161}
163162
163+ config_meson_man_docs () {
164+ CC=" ${CC} " " ${MESON} " setup \
165+ -Ddocs=man \
166+ -Ddocs-build=true \
167+ --prefix=/tmp/usr \
168+ " ${BUILDDIR} "
169+ }
170+
164171config_meson_html_docs () {
165172 CC=" ${CC} " " ${MESON} " setup \
166- -Dnvme=disabled \
167- -Dlibnvme=disabled \
168173 -Ddocs=html \
169174 -Ddocs-build=true \
170175 --prefix=/tmp/usr \
@@ -173,8 +178,6 @@ config_meson_html_docs() {
173178
174179config_meson_rst_docs () {
175180 CC=" ${CC} " " ${MESON} " setup \
176- -Dnvme=disabled \
177- -Dlibnvme=disabled \
178181 -Ddocs=rst \
179182 -Ddocs-build=true \
180183 --prefix=/tmp/usr \
@@ -252,6 +255,30 @@ build_meson() {
252255 -C " ${BUILDDIR} "
253256}
254257
258+ build_meson_docs () {
259+ " ${MESON} " compile \
260+ -C " ${BUILDDIR} " \
261+ docs
262+ }
263+
264+ build_meson_man_docs () {
265+ " ${MESON} " compile \
266+ -C " ${BUILDDIR} " \
267+ docs
268+ }
269+
270+ build_meson_html_docs () {
271+ " ${MESON} " compile \
272+ -C " ${BUILDDIR} " \
273+ docs
274+ }
275+
276+ build_meson_rst_docs () {
277+ " ${MESON} " compile \
278+ -C " ${BUILDDIR} " \
279+ docs
280+ }
281+
255282test_meson () {
256283 local args=(-C " ${BUILDDIR} " )
257284
@@ -266,6 +293,22 @@ test_meson() {
266293 " ${MESON} " test " ${args[@]} "
267294}
268295
296+ test_meson_docs () {
297+ true
298+ }
299+
300+ test_meson_man_docs () {
301+ true
302+ }
303+
304+ test_meson_html_docs () {
305+ true
306+ }
307+
308+ test_meson_rst_docs () {
309+ true
310+ }
311+
269312test_meson_coverage () {
270313 " ${MESON} " test \
271314 -C " ${BUILDDIR} "
0 commit comments