]> git.ipfire.org Git - thirdparty/systemd.git/blob - sysusers.d/meson.build
build-sys: use #if Y instead of #ifdef Y everywhere
[thirdparty/systemd.git] / sysusers.d / meson.build
1 in_files = ['basic.conf']
2
3 enable_sysusers = conf.get('ENABLE_SYSUSERS') == 1
4
5 foreach file : in_files
6 gen = configure_file(
7 input : file + '.in',
8 output : file,
9 configuration : substs)
10 if enable_sysusers
11 install_data(gen,
12 install_dir : sysusersdir)
13 endif
14 endforeach
15
16 m4_files = ['systemd.conf']
17
18 if conf.get('ENABLE_REMOTE') == 1 and conf.get('HAVE_MICROHTTPD') == 1
19 m4_files += ['systemd-remote.conf']
20 endif
21
22 foreach file : m4_files
23 custom_target(
24 'sysusers.d_' + file,
25 input : file + '.m4',
26 output: file,
27 command : [m4, '-P'] + m4_defines + ['@INPUT@'],
28 capture : true,
29 install : enable_sysusers,
30 install_dir : sysusersdir)
31 endforeach