summaryrefslogtreecommitdiffstats
path: root/docs/sysvinit/meson.build
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-05-16 15:05:10 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-05-19 03:24:43 +0200
commit02fa218b24304b14a4df82974a730ca341d188fc (patch)
tree77623aa467920d3c24c9a25656ebdf38ece88037 /docs/sysvinit/meson.build
parentmeson: use jinja2 for the gperf template (diff)
downloadsystemd-02fa218b24304b14a4df82974a730ca341d188fc.tar.xz
systemd-02fa218b24304b14a4df82974a730ca341d188fc.zip
meson: use jinja2 for README
Diffstat (limited to '')
-rw-r--r--docs/sysvinit/meson.build13
1 files changed, 6 insertions, 7 deletions
diff --git a/docs/sysvinit/meson.build b/docs/sysvinit/meson.build
index 261bd68ca3..0a1935388a 100644
--- a/docs/sysvinit/meson.build
+++ b/docs/sysvinit/meson.build
@@ -1,11 +1,10 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
-file = configure_file(
+custom_target(
+ 'README',
input : 'README.in',
output : 'README',
- configuration : substs)
-
-if conf.get('HAVE_SYSV_COMPAT') == 1
- install_data(file,
- install_dir : sysvinit_path)
-endif
+ command : [meson_render_jinja2, config_h, '@INPUT@'],
+ capture : true,
+ install : conf.get('HAVE_SYSV_COMPAT') == 1,
+ install_dir : sysvinit_path)