Skip to content

Commit

Permalink
doc: Provide SYSCONFDIR without quotes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
igaw committed Mar 18, 2022
1 parent 057c801 commit 131ee68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 131ee68

Please sign in to comment.