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