mandirn = join_paths(get_option('mandir'), 'man' + section)
- if condition == '' or conf.get(condition, 0) == 1
+ if condition == '' or conf.get(condition, false)
p1 = custom_target(
man,
input : xml,
install_dir : mandirn)
man_pages += [p1]
- p2 = custom_target(
+ p2 = []
+ foreach htmlalias : htmlaliases
+ link = custom_target(
+ htmlalias,
+ input : p2,
+ output : htmlalias,
+ command : ['ln', '-fs', html, '@OUTPUT@'])
+ if want_html
+ dst = join_paths(docdir, 'html', htmlalias)
+ cmd = 'ln -fs @0@ $DESTDIR@1@'.format(html, dst)
+ meson.add_install_script('sh', '-c', cmd)
+ p2 += [link]
+ endif
+ html_pages += [link]
+ endforeach
+
+ p3 = custom_target(
html,
input : xml,
- output : [html] + htmlaliases,
+ output : html,
command : xslt_cmd + [custom_html_xsl, '@INPUT@'],
depend_files : custom_entities_ent,
+ depends : p2,
install : want_html,
install_dir : join_paths(docdir, 'html'))
- html_pages += [p2]
+ html_pages += [p3]
source_xml_files += files(tuple[0] + '.xml')
else
install_dir : mandirn)
man_pages += [p1]
- p2 = custom_target(
+ p2 = []
+ if html == 'systemd.index.html'
+ htmlalias = 'index.html'
+ link = custom_target(
+ htmlalias,
+ input : p2,
+ output : htmlalias,
+ command : ['ln', '-fs', html, '@OUTPUT@'])
+ if want_html
+ dst = join_paths(docdir, 'html', htmlalias)
+ cmd = 'ln -fs @0@ $DESTDIR@1@'.format(html, dst)
+ meson.add_install_script('sh', '-c', cmd)
+ p2 += [link]
+ endif
+ html_pages += [link]
+ endif
+
+ p3 = custom_target(
html,
input : xml,
output : html,
command : xslt_cmd + [custom_html_xsl, '@INPUT@'],
+ depend_files : custom_entities_ent,
+ depends : p2,
install : want_html and have_lxml,
install_dir : join_paths(docdir, 'html'))
- html_pages += [p2]
+ html_pages += [p3]
endforeach
# cannot use run_target until https://github.com/mesonbuild/meson/issues/1644 is resolved
netdev/vxlan.h
netdev/geneve.c
netdev/geneve.h
+ networkd-address-label.c
+ networkd-address-label.h
networkd-address-pool.c
networkd-address-pool.h
networkd-address.c
network_include_dir = include_directories('.')
- if conf.get('ENABLE_NETWORKD', 0) == 1
+ if conf.get('ENABLE_NETWORKD', false)
networkd_gperf_c = custom_target(
'networkd-gperf.c',
input : 'networkd-gperf.gperf',
test_tables_h = files('test-tables.h')
shared_sources += [test_tables_h]
- if conf.get('HAVE_ACL', 0) == 1
+ if conf.get('HAVE_ACL', false)
shared_sources += ['acl-util.c']
endif
- if conf.get('HAVE_UTMP', 0) == 1
+ if conf.get('HAVE_UTMP', false)
shared_sources += ['utmp-wtmp.c']
endif
- if conf.get('HAVE_SECCOMP', 0) == 1
+ if conf.get('HAVE_SECCOMP', false)
shared_sources += ['seccomp-util.c']
endif
- if conf.get('HAVE_LIBIPTC', 0) == 1
+ if conf.get('HAVE_LIBIPTC', false)
shared_sources += ['firewall-util.c']
endif
basic_sources,
journal_internal_sources,
libsystemd_internal_sources,
+ libudev_sources,
include_directories : includes,
link_args : ['-shared'],
c_args : ['-fvisibility=default'],
- link_with : [libudev],
dependencies : [threads,
librt,
libcap,