From 41eeee4e69d7ca6bb6d23615154fb090467b13cd Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Sun, 6 Sep 2020 17:43:32 +0100 Subject: [PATCH] Install config file to etc Only install if sysconfdir is not the same as the source config file from the source directory. --- meson.build | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meson.build b/meson.build index c5ac171..62e14e7 100644 --- a/meson.build +++ b/meson.build @@ -9,4 +9,11 @@ duckhandy_inc = include_directories('subprojects/duckhandy/include') 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) +endif