From: tblume Date: Thu, 1 Feb 2018 21:46:15 +0000 (+0100) Subject: meson.build: make docdir configurable (#8068) X-Git-Tag: v238~157 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75aaade16b00ff519fbaedb4cc773b654c11a34a;p=thirdparty%2Fsystemd.git meson.build: make docdir configurable (#8068) SUSE is using a different docdir, so the path should be configurable --- diff --git a/meson.build b/meson.build index 36a62d280df..e497924cb80 100644 --- a/meson.build +++ b/meson.build @@ -136,13 +136,17 @@ udevhwdbdir = join_paths(udevlibexecdir, 'hwdb.d') catalogdir = join_paths(prefixdir, 'lib/systemd/catalog') kernelinstalldir = join_paths(prefixdir, 'lib/kernel/install.d') factorydir = join_paths(datadir, 'factory') -docdir = join_paths(datadir, 'doc/systemd') bootlibdir = join_paths(prefixdir, 'lib/systemd/boot/efi') testsdir = join_paths(prefixdir, 'lib/systemd/tests') systemdstatedir = join_paths(localstatedir, 'lib/systemd') catalogstatedir = join_paths(systemdstatedir, 'catalog') randomseeddir = join_paths(localstatedir, 'lib/systemd') +docdir = get_option('docdir') +if docdir == '' + docdir = join_paths(datadir, 'doc/systemd') +endif + dbuspolicydir = get_option('dbuspolicydir') if dbuspolicydir == '' dbuspolicydir = join_paths(datadir, 'dbus-1/system.d') diff --git a/meson_options.txt b/meson_options.txt index 39822d6cdcb..48ee3f52a4c 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -134,6 +134,8 @@ option('pamlibdir', type : 'string', description : 'directory for PAM modules') option('pamconfdir', type : 'string', description : 'directory for PAM configuration ["no" disables]') +option('docdir', type : 'string', + description : 'documentation directory') option('fallback-hostname', type : 'string', value : 'localhost', description : 'the hostname used if none configured')