]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
doc: Build Ducktype documentation even if doxygen is not found
authorSimon McVittie <smcv@collabora.com>
Fri, 24 Jun 2022 11:16:28 +0000 (12:16 +0100)
committerSimon McVittie <smcv@collabora.com>
Wed, 13 Jul 2022 19:36:13 +0000 (20:36 +0100)
Signed-off-by: Simon McVittie <smcv@collabora.com>
doc/meson.build

index 254eff9f073db275b8d259f31af8b9987fbc7e03..f7184791dfcc7cade0b1a4617a36530a27155a06 100644 (file)
@@ -209,26 +209,26 @@ if doxygen.found()
             install_dir: docs_dir,
         )
     endif
+endif
 
-    if ducktype.found() and yelpbuild.found()
-        design_page = custom_target('dbus-api-design.page',
-            input: 'dbus-api-design.duck',
-            output: 'dbus-api-design.page',
-            command: [ ducktype, '-o', '@OUTPUT@', '@INPUT@' ],
-        )
-        html_files += custom_target('dbus-api-design.html',
-            input: design_page,
-            output: [
-                'dbus-api-design.html',
-                'yelp.js',
-                'C.css',
-                'highlight.pack.js',
-            ],
-            command: [ yelpbuild, 'html', '@INPUT@', '-o', meson.current_build_dir() ],
-            install: true,
-            install_dir: docs_dir,
-        )
-    endif
+if ducktype.found() and yelpbuild.found()
+    design_page = custom_target('dbus-api-design.page',
+        input: 'dbus-api-design.duck',
+        output: 'dbus-api-design.page',
+        command: [ ducktype, '-o', '@OUTPUT@', '@INPUT@' ],
+    )
+    html_files += custom_target('dbus-api-design.html',
+        input: design_page,
+        output: [
+            'dbus-api-design.html',
+            'yelp.js',
+            'C.css',
+            'highlight.pack.js',
+        ],
+        command: [ yelpbuild, 'html', '@INPUT@', '-o', meson.current_build_dir() ],
+        install: true,
+        install_dir: docs_dir,
+    )
 endif
 
 if can_upload_docs