From 1d587e04b9d2efe2bfc6df3e1946c46b106532ed Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Sun, 16 May 2021 16:04:04 +0200 Subject: meson: use jinja2 in src/vconsole --- src/vconsole/meson.build | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/vconsole/meson.build') diff --git a/src/vconsole/meson.build b/src/vconsole/meson.build index 695ef0239d..dea4121f1a 100644 --- a/src/vconsole/meson.build +++ b/src/vconsole/meson.build @@ -1,10 +1,10 @@ # SPDX-License-Identifier: LGPL-2.1-or-later -if conf.get('ENABLE_VCONSOLE') == 1 - vconsole_rules = configure_file( - input : '90-vconsole.rules.in', - output : '90-vconsole.rules', - configuration : substs) - install_data(vconsole_rules, - install_dir : udevrulesdir) -endif +custom_target( + '90-vconsole.rules', + input : '90-vconsole.rules.in', + output : '90-vconsole.rules', + command : [meson_render_jinja2, config_h, '@INPUT@'], + capture : true, + install : conf.get('ENABLE_VCONSOLE') == 1, + install_dir : udevrulesdir) -- cgit v1.2.3