mirror of
https://github.com/systemd/systemd.git
synced 2024-11-04 13:51:24 +03:00
Merge pull request #5871 from keszybz/meson-html-2
meson: make sure html symlinks are also created in build directory
This commit is contained in:
commit
96c1f5904b
@ -61,18 +61,9 @@ foreach tuple : manpages
|
|||||||
install_dir : mandirn)
|
install_dir : mandirn)
|
||||||
man_pages += [p1]
|
man_pages += [p1]
|
||||||
|
|
||||||
p2 = custom_target(
|
p2 = []
|
||||||
html,
|
|
||||||
input : xml,
|
|
||||||
output : html,
|
|
||||||
command : xslt_cmd + [custom_html_xsl, '@INPUT@'],
|
|
||||||
depend_files : custom_entities_ent,
|
|
||||||
install : want_html,
|
|
||||||
install_dir : join_paths(docdir, 'html'))
|
|
||||||
html_pages += [p2]
|
|
||||||
|
|
||||||
foreach htmlalias : htmlaliases
|
foreach htmlalias : htmlaliases
|
||||||
p3 = custom_target(
|
link = custom_target(
|
||||||
htmlalias,
|
htmlalias,
|
||||||
input : p2,
|
input : p2,
|
||||||
output : htmlalias,
|
output : htmlalias,
|
||||||
@ -81,10 +72,22 @@ foreach tuple : manpages
|
|||||||
dst = join_paths(docdir, 'html', htmlalias)
|
dst = join_paths(docdir, 'html', htmlalias)
|
||||||
cmd = 'ln -fs @0@ $DESTDIR@1@'.format(html, dst)
|
cmd = 'ln -fs @0@ $DESTDIR@1@'.format(html, dst)
|
||||||
meson.add_install_script('sh', '-c', cmd)
|
meson.add_install_script('sh', '-c', cmd)
|
||||||
|
p2 += [link]
|
||||||
endif
|
endif
|
||||||
html_pages += [p3]
|
html_pages += [link]
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
|
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,
|
||||||
|
install_dir : join_paths(docdir, 'html'))
|
||||||
|
html_pages += [p3]
|
||||||
|
|
||||||
source_xml_files += files(tuple[0] + '.xml')
|
source_xml_files += files(tuple[0] + '.xml')
|
||||||
else
|
else
|
||||||
message('Skipping @0@.@1@ because @2@ is false'.format(stem, section, condition))
|
message('Skipping @0@.@1@ because @2@ is false'.format(stem, section, condition))
|
||||||
@ -131,18 +134,10 @@ foreach tuple : [['systemd.directives', '7', systemd_directives_xml],
|
|||||||
install_dir : mandirn)
|
install_dir : mandirn)
|
||||||
man_pages += [p1]
|
man_pages += [p1]
|
||||||
|
|
||||||
p2 = custom_target(
|
p2 = []
|
||||||
html,
|
|
||||||
input : xml,
|
|
||||||
output : html,
|
|
||||||
command : xslt_cmd + [custom_html_xsl, '@INPUT@'],
|
|
||||||
install : want_html and have_lxml,
|
|
||||||
install_dir : join_paths(docdir, 'html'))
|
|
||||||
html_pages += [p2]
|
|
||||||
|
|
||||||
if html == 'systemd.index.html'
|
if html == 'systemd.index.html'
|
||||||
htmlalias = 'index.html'
|
htmlalias = 'index.html'
|
||||||
p3 = custom_target(
|
link = custom_target(
|
||||||
htmlalias,
|
htmlalias,
|
||||||
input : p2,
|
input : p2,
|
||||||
output : htmlalias,
|
output : htmlalias,
|
||||||
@ -151,9 +146,21 @@ foreach tuple : [['systemd.directives', '7', systemd_directives_xml],
|
|||||||
dst = join_paths(docdir, 'html', htmlalias)
|
dst = join_paths(docdir, 'html', htmlalias)
|
||||||
cmd = 'ln -fs @0@ $DESTDIR@1@'.format(html, dst)
|
cmd = 'ln -fs @0@ $DESTDIR@1@'.format(html, dst)
|
||||||
meson.add_install_script('sh', '-c', cmd)
|
meson.add_install_script('sh', '-c', cmd)
|
||||||
|
p2 += [link]
|
||||||
endif
|
endif
|
||||||
html_pages += [p3]
|
html_pages += [link]
|
||||||
endif
|
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 += [p3]
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
# cannot use run_target until https://github.com/mesonbuild/meson/issues/1644 is resolved
|
# cannot use run_target until https://github.com/mesonbuild/meson/issues/1644 is resolved
|
||||||
|
Loading…
Reference in New Issue
Block a user