diff options
author | emersion <contact@emersion.fr> | 2018-11-24 08:06:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-24 08:06:25 +0100 |
commit | d9ed1f080b23067db432b358a5d15b9c94d2c59d (patch) | |
tree | 2832a8f4624edda9b547ef64493eb64310865e39 | |
parent | 77554f545e1b386ae0f4896bdf4c817524a15e60 (diff) | |
parent | c4bbd0d3c62e95a2adf7de032db76fa674d95760 (diff) | |
download | sway-d9ed1f080b23067db432b358a5d15b9c94d2c59d.tar.xz |
Merge pull request #3178 from progandy/sysconfdir
Meson: Fix SYSCONFDIR definition
-rw-r--r-- | meson.build | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/meson.build b/meson.build index bb60bc89..810a657e 100644 --- a/meson.build +++ b/meson.build @@ -108,13 +108,7 @@ if scdoc.found() endforeach endif -# If prefix is '/usr', sysconfdir will be explicitly set to '/etc' by Meson to -# enforce FHS compliance, so we should look for configs there as well. -if prefix == '/usr' - add_project_arguments('-DSYSCONFDIR="/@0@"'.format(sysconfdir), language : 'c') -else - add_project_arguments('-DSYSCONFDIR="/@0@/@1@"'.format(prefix, sysconfdir), language : 'c') -endif +add_project_arguments('-DSYSCONFDIR="/@0@"'.format(join_paths(prefix, sysconfdir)), language : 'c') version = get_option('sway-version') if version != '' @@ -159,14 +153,7 @@ subdir('swaylock') config = configuration_data() config.set('datadir', join_paths(prefix, datadir)) config.set('prefix', prefix) - -# If prefix is '/usr', sysconfdir will be explicitly set to '/etc' by Meson to -# enforce FHS compliance, so we should look for configs there as well. -if prefix == '/usr' - config.set('sysconfdir', sysconfdir) -else - config.set('sysconfdir', join_paths(prefix, sysconfdir)) -endif +config.set('sysconfdir', join_paths(prefix, sysconfdir)) configure_file( configuration: config, |