diff --git a/meson.build b/meson.build index 62e14e7..ff6942c 100644 --- a/meson.build +++ b/meson.build @@ -10,10 +10,9 @@ date_inc = include_directories('subprojects/date/include') magic_enum_inc = include_directories('subprojects/magic_enum/include') full_config_dir = get_option('prefix') / get_option('sysconfdir') -full_config_path = get_option('prefix') / get_option('sysconfdir') / meson.project_name() + '.conf' subdir('src') if meson.source_root() != full_config_dir - install_data(sources: 'orotool.conf', install_dir: full_config_dir) + install_data(sources: meson.project_name() + '.conf', install_dir: full_config_dir) endif diff --git a/src/meson.build b/src/meson.build index 6b86f33..e65cacd 100644 --- a/src/meson.build +++ b/src/meson.build @@ -45,7 +45,7 @@ endif conf = configuration_data() conf.set_quoted('BASE_URL', base_url) -conf.set_quoted('CONFIG_FILE_PATH', get_option('prefix') / get_option('sysconfdir') / meson.project_name() + '.conf') +conf.set_quoted('CONFIG_FILE_PATH', full_config_dir / meson.project_name() + '.conf') conf.set_quoted('DEF_SQLITE_DB_NAME', get_option('def_sqlite_db_name')) conf.set_quoted('PROJECT_NAME', meson.project_name()) if get_option('buildtype') == 'debug'