]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
doc: Provide SYSCONFDIR without quotes v1.0-rc7
authorDaniel Wagner <dwagner@suse.de>
Fri, 18 Mar 2022 16:40:19 +0000 (17:40 +0100)
committerDaniel Wagner <dwagner@suse.de>
Fri, 18 Mar 2022 16:40:19 +0000 (17:40 +0100)
Unfortunately, we can't use the configuration data object defined in
the top meson.build file as this one is with quotes. Instead, making
the c code ugly, just provide a new configuration data object without
the quotes. This avoid generating strings suchs as

  "/etc"/nvme/hostnqn

Signed-off-by: Daniel Wagner <dwagner@suse.de>
doc/meson.build

index 0f31eb5bb38dc97328ddf4870eeaa9ea8da18080..0f0434398a9c880c649b3355c7ec51ab596b8520 100644 (file)
@@ -30,6 +30,9 @@ want_docs_build = get_option('docs-build')
 if want_docs != 'false'
   kernel_doc = find_program('kernel-doc')
 
+  conf = configuration_data()
+  conf.set('SYSCONFDIR', sysconfdir)
+
   if want_docs == 'all' or want_docs == 'man'
     mandir = join_paths(get_option('mandir'), 'man2')
     list_man_pages = find_program('list-man-pages.sh')