]> git.ipfire.org Git - thirdparty/systemd.git/blame - sysusers.d/meson.build
Merge pull request #6918 from ssahani/issue-5625
[thirdparty/systemd.git] / sysusers.d / meson.build
CommitLineData
3a726fcd
ZJS
1# SPDX-License-Identifier: LGPL-2.1+
2#
3# Copyright 2017 Zbigniew Jędrzejewski-Szmek
4#
5# systemd is free software; you can redistribute it and/or modify it
6# under the terms of the GNU Lesser General Public License as published by
7# the Free Software Foundation; either version 2.1 of the License, or
8# (at your option) any later version.
9#
10# systemd is distributed in the hope that it will be useful, but
11# WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# Lesser General Public License for more details.
14#
15# You should have received a copy of the GNU Lesser General Public License
16# along with systemd; If not, see <http://www.gnu.org/licenses/>.
17
5c23128d
ZJS
18in_files = ['basic.conf']
19
349cc4a5 20enable_sysusers = conf.get('ENABLE_SYSUSERS') == 1
5c23128d
ZJS
21
22foreach file : in_files
37efbbd8
ZJS
23 gen = configure_file(
24 input : file + '.in',
25 output : file,
26 configuration : substs)
27 if enable_sysusers
28 install_data(gen,
29 install_dir : sysusersdir)
30 endif
5c23128d
ZJS
31endforeach
32
33m4_files = ['systemd.conf']
34
349cc4a5 35if conf.get('ENABLE_REMOTE') == 1 and conf.get('HAVE_MICROHTTPD') == 1
37efbbd8 36 m4_files += ['systemd-remote.conf']
5c23128d
ZJS
37endif
38
39foreach file : m4_files
37efbbd8 40 custom_target(
525e9db3 41 'sysusers.d_' + file,
37efbbd8
ZJS
42 input : file + '.m4',
43 output: file,
44 command : [m4, '-P'] + m4_defines + ['@INPUT@'],
45 capture : true,
46 install : enable_sysusers,
47 install_dir : sysusersdir)
5c23128d 48endforeach