build: support registry generation

sdbus++-gen-meson version 10 adds support for redfish registry
generation and greatly simplifies the install directives.

Regenerate the YAML meson files and modify the base meson.build
as necessary.  Also, format meson.build with `meson format`.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I77586fca7742d5468803913cb45276ca57271655
diff --git a/gen/org/open_power/meson.build b/gen/org/open_power/meson.build
index b24f5ea..84bf1e8 100644
--- a/gen/org/open_power/meson.build
+++ b/gen/org/open_power/meson.build
@@ -2,7 +2,15 @@
 subdir('Common')
 subdir('Control')
 subdir('Host')
-generated_others += custom_target(
+subdir('Inventory')
+subdir('Logging')
+subdir('OCC')
+subdir('Proc')
+subdir('Sensor')
+
+sdbusplus_current_path = 'org/open_power'
+
+generated_markdown += custom_target(
     'org/open_power/Host__markdown'.underscorify(),
     input: [ '../../../yaml/org/open_power/Host.errors.yaml',  ],
     output: [ 'Host.md' ],
@@ -14,10 +22,8 @@
         '--directory', meson.current_source_dir() / '../../../yaml',
         'org/open_power/Host',
     ],
+    install: should_generate_markdown,
+    install_dir: [inst_markdown_dir / sdbusplus_current_path],
+    build_by_default: should_generate_markdown,
 )
 
-subdir('Inventory')
-subdir('Logging')
-subdir('OCC')
-subdir('Proc')
-subdir('Sensor')