]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
meson: Fix template installation location
authorStéphane Graber <stgraber@ubuntu.com>
Sun, 1 May 2022 08:21:08 +0000 (10:21 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Sun, 1 May 2022 08:24:31 +0000 (10:24 +0200)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
templates/meson.build

index 2ee275c4a14d784cda067a7f0b042e531ba07c9b..14edb4e4ccbf1249cff442bb467f8937072b52be 100644 (file)
@@ -3,8 +3,9 @@
 template_scripts = configure_file(
     configuration: dummy_config_data,
     input: 'lxc-busybox.in',
-    output: 'lxc-busybox')
-install_data(join_paths(project_build_root, 'templates/lxc-busybox'), install_dir: lxctemplatedir)
+    output: 'lxc-busybox',
+    install: true,
+    install_dir: lxctemplatedir)
 
 template_config_data = configuration_data()
 template_config_data.set_quoted('LXCHOOKDIR', lxchookdir)
@@ -15,17 +16,20 @@ template_config_data.set_quoted('PACKAGE_VERSION', meson.project_version())
 template_scripts = configure_file(
     configuration: template_config_data,
     input: 'lxc-download.in',
-    output: 'lxc-download')
-install_data(join_paths(project_build_root, 'templates/lxc-download'), install_dir: lxchookdir)
+    output: 'lxc-download',
+    install: true,
+    install_dir: lxctemplatedir)
 
 template_scripts = configure_file(
     configuration: template_config_data,
     input: 'lxc-local.in',
-    output: 'lxc-local')
-install_data(join_paths(project_build_root, 'templates/lxc-local'), install_dir: lxchookdir)
+    output: 'lxc-local',
+    install: true,
+    install_dir: lxctemplatedir)
 
 template_scripts = configure_file(
     configuration: template_config_data,
     input: 'lxc-oci.in',
-    output: 'lxc-oci')
-install_data(join_paths(project_build_root, 'templates/lxc-oci'), install_dir: lxchookdir)
+    output: 'lxc-oci',
+    install: true,
+    install_dir: lxctemplatedir)