]>
Commit | Line | Data |
---|---|---|
3a726fcd | 1 | # SPDX-License-Identifier: LGPL-2.1+ |
3a726fcd | 2 | |
5c23128d ZJS |
3 | in_files = ['basic.conf'] |
4 | ||
349cc4a5 | 5 | enable_sysusers = conf.get('ENABLE_SYSUSERS') == 1 |
5c23128d ZJS |
6 | |
7 | foreach file : in_files | |
37efbbd8 ZJS |
8 | gen = configure_file( |
9 | input : file + '.in', | |
10 | output : file, | |
11 | configuration : substs) | |
12 | if enable_sysusers | |
13 | install_data(gen, | |
14 | install_dir : sysusersdir) | |
15 | endif | |
5c23128d ZJS |
16 | endforeach |
17 | ||
18 | m4_files = ['systemd.conf'] | |
19 | ||
349cc4a5 | 20 | if conf.get('ENABLE_REMOTE') == 1 and conf.get('HAVE_MICROHTTPD') == 1 |
37efbbd8 | 21 | m4_files += ['systemd-remote.conf'] |
5c23128d ZJS |
22 | endif |
23 | ||
24 | foreach file : m4_files | |
37efbbd8 | 25 | custom_target( |
525e9db3 | 26 | 'sysusers.d_' + file, |
37efbbd8 ZJS |
27 | input : file + '.m4', |
28 | output: file, | |
348b4437 | 29 | command : [meson_apply_m4, config_h, '@INPUT@'], |
37efbbd8 ZJS |
30 | capture : true, |
31 | install : enable_sysusers, | |
32 | install_dir : sysusersdir) | |
5c23128d | 33 | endforeach |