]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
docs: Don't confuse asciidoc with asciidoctor
authorDaniel Wagner <dwagner@suse.de>
Wed, 1 Jun 2022 13:53:18 +0000 (15:53 +0200)
committerDaniel Wagner <dwagner@suse.de>
Wed, 1 Jun 2022 13:59:22 +0000 (15:59 +0200)
Apparently, asciidoc and asciidoctor are two different
projects. nvme-cli depends on the former. Depend on asciidoc only and
make it a hard dependency when the user ask to build the doc.

Fixes: 6b18babf40d4 ("docs: Search for 'asciidoctor' as alternative")
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Documentation/meson.build

index 2615021a0e9a7ed80e3a386eaa8bc53aa0fd19fa..a47c27f6e41147cbada1637fb94fa562b8ba24e0 100644 (file)
@@ -174,7 +174,7 @@ if want_docs != 'false'
   mandir = join_paths(get_option('mandir'), 'man1')
   htmldir = join_paths(get_option('htmldir'), 'nvme')
 
-  asciidoctor = find_program(['asciidoc', 'asciidoctor'], required : false)
+  asciidoctor = find_program('asciidoc', required: get_option('docs-build'))
   if want_docs_build and asciidoctor.found()
     # Build documentation before installing